We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a5e9e3 commit ae0a1f8Copy full SHA for ae0a1f8
1 file changed
NetLicensingClient/netlicensing.php
@@ -18,7 +18,7 @@ class NetLicensing
18
**/
19
function __construct($apiKey)
20
{
21
- $user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'NetLicensing/PHP ' . PHP_VERSION . ' (http://netlicensing.labs64.com)';
+ $user_agent = 'NetLicensing/PHP ' . PHP_VERSION . ' (http://netlicensing.labs64.com)' . '; ' . $_SERVER['HTTP_USER_AGENT'];
22
23
$this->curl = new Curl();
24
$this->curl->headers['Authorization'] = 'Basic ' . base64_encode("apiKey:" . $apiKey);
0 commit comments