]> git.proxmox.com Git - pve-apiclient.git/blobdiff - PVE/APIClient/LWP.pm
use two-argument bless
[pve-apiclient.git] / PVE / APIClient / LWP.pm
index baf3a680694b0291bb9b00dbc6d9e32584bce0cd..e988033e573a68aab51b118058adc4caab75f0b1 100755 (executable)
@@ -317,7 +317,7 @@ sub new {
        register_fingerprint_cb => $param{register_fingerprint_cb},
        timeout => $param{timeout} || 60,
     };
-    bless $self;
+    bless $self, $class;
 
     if (!$ssl_opts->{SSL_verify_callback}) {
        $ssl_opts->{'SSL_verify_mode'} = SSL_VERIFY_PEER;