Skip to content

Commit ae0a1f8

Browse files
committed
Change user-agent string
1 parent 0a5e9e3 commit ae0a1f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

NetLicensingClient/netlicensing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class NetLicensing
1818
**/
1919
function __construct($apiKey)
2020
{
21-
$user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'NetLicensing/PHP ' . PHP_VERSION . ' (http://netlicensing.labs64.com)';
21+
$user_agent = 'NetLicensing/PHP ' . PHP_VERSION . ' (http://netlicensing.labs64.com)' . '; ' . $_SERVER['HTTP_USER_AGENT'];
2222

2323
$this->curl = new Curl();
2424
$this->curl->headers['Authorization'] = 'Basic ' . base64_encode("apiKey:" . $apiKey);

0 commit comments

Comments
 (0)