Skip to content

Commit

Permalink
Fix : '=' instead of '=='
Browse files Browse the repository at this point in the history
  • Loading branch information
s-renier-taonix-fr authored and f3l1x committed Feb 13, 2023
1 parent 708a141 commit 60a7ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nusoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 60a7ee1

Please sign in to comment.