2
0
forked from Wavyzz/dolibarr

Update nusoap.php

re-establish user-agent
This commit is contained in:
Frédéric FRANCE
2016-04-09 15:42:53 +02:00
parent 6a4ca98ad9
commit f90cffd74a

View File

@@ -2217,7 +2217,7 @@ class soap_transport_http extends nusoap_base {
}
$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].')':''));
}
/**