Skip to content

Commit 1a3c1ee

Browse files
committed
add Client release version to userAgent
1 parent a7e3001 commit 1a3c1ee

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

common/Constants.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
class Constants
1313
{
14+
const NETLICENSING_VERSION = '2.5.0';
15+
1416
const NUMBER = 'number';
1517
const CASCADE = 'forceCascade';
1618
const FILTER = 'filter';

service/NetLicensingService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ private function __construct()
2727
{
2828
$this->curl = new NetLicensingCurl();
2929
$this->curl->setHeader('Accept', 'application/json');
30-
$this->curl->setUserAgent('NetLicensing/PHP ' . PHP_VERSION . ' (https://netlicensing.io)');
30+
$this->curl->setUserAgent('NetLicensing/PHP ' . PHP_VERSION .'/' . Constants::NETLICENSING_VERSION. ' (https://netlicensing.io)');
3131
}
3232

3333
protected function __clone()

0 commit comments

Comments
 (0)