Skip to content

Commit

Permalink
Merge pull request #4975 from frederic34/patch-7
Browse files Browse the repository at this point in the history
FIX re-establish user-agent when using nusoap client
  • Loading branch information
eldy committed Apr 9, 2016
2 parents 6a4ca98 + f90cffd commit b5dfa2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/includes/nusoap/lib/nusoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2217,7 +2217,7 @@ function soap_transport_http($url, $curl_options = NULL, $use_curl = false){
}
$this->use_curl = $use_curl;
preg_match('/\$Revisio' . 'n: ([^ ]+)/', $this->revision, $rev);
if (isset($rev[1])) $this->setHeader('User-Agent', $this->title.'/'.$this->version.' ('.$rev[1].')');
$this->setHeader('User-Agent', $this->title.'/'.$this->version.(isset($rev[1])?' ('.$rev[1].')':''));
}

/**
Expand Down

0 comments on commit b5dfa2e

Please sign in to comment.