We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8831bde commit 6c005bcCopy full SHA for 6c005bc
templates/python/package/client.py.twig
@@ -12,7 +12,7 @@ class Client:
12
self._global_headers = {
13
'content-type': '',
14
'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()})',
+ 'user-agent' : '{{spec.title | caseUcfirst}}{{ language.name | caseUcfirst }}SDK/{{ sdk.version }} (${os.uname().sysname}; ${os.uname().version}; ${os.uname().machine})',
16
{% for key,header in spec.global.defaultHeaders %}
17
'{{key}}' : '{{header}}',
18
{% endfor %}
0 commit comments