Skip to content

Commit 6c005bc

Browse files
committed
add user-agent to python
1 parent 8831bde commit 6c005bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/python/package/client.py.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Client:
1212
self._global_headers = {
1313
'content-type': '',
1414
'x-sdk-version': '{{spec.title | caseDash}}:{{ language.name | caseLower }}:{{ sdk.version }}',
15-
'User-Agent' : '{{spec.title | caseUcfirst}}Python/{{ sdk.version }} (${os.type()} ${os.version()}; ${os.arch()})',
15+
'user-agent' : '{{spec.title | caseUcfirst}}{{ language.name | caseUcfirst }}SDK/{{ sdk.version }} (${os.uname().sysname}; ${os.uname().version}; ${os.uname().machine})',
1616
{% for key,header in spec.global.defaultHeaders %}
1717
'{{key}}' : '{{header}}',
1818
{% endfor %}

0 commit comments

Comments
 (0)