diff --git a/src/nusoap.php b/src/nusoap.php index ff09f5f..b2de221 100755 --- a/src/nusoap.php +++ b/src/nusoap.php @@ -2779,7 +2779,7 @@ function setProxy($proxyhost, $proxyport, $proxyusername = '', $proxypassword = 'password' => $proxypassword, 'authtype' => $proxyauthtype ); - if ($proxyusername != '' && $proxypassword != '' && $proxyauthtype = 'basic') { + if ($proxyusername != '' && $proxypassword != '' && $proxyauthtype == 'basic') { $this->setHeader('Proxy-Authorization', ' Basic ' . base64_encode($proxyusername . ':' . $proxypassword)); } } else {