Skip to content

Commit f9050a1

Browse files
committed
modify user-agent for php SDK
1 parent 6c005bc commit f9050a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/php/src/Client.php.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Client
3838
protected $headers = [
3939
'content-type' => '',
4040
'x-sdk-version' => '{{spec.title | caseDash}}:{{ language.name | caseLower }}:{{ sdk.version }}',
41-
'User-Agent' => '{{spec.title | caseUcfirst}}PHP/{{ sdk.version }} (${os.type()} ${os.version()}; ${os.arch()})',
41+
'user-agent' => '{{spec.title | caseUcfirst}}{{ language.name | caseUcfirst }}SDK/{{ sdk.version }} (${php_uname('s')}; ${php_uname('v')}; ${php_uname('m')})',
4242
];
4343
4444
/**

0 commit comments

Comments
 (0)