Skip to content

Commit 0befe1b

Browse files
committed
modify user-agent for Deno SDK
1 parent f9050a1 commit 0befe1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/deno/src/client.ts.twig

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

0 commit comments

Comments
 (0)