Skip to content

Commit 69b0a2c

Browse files
committed
Add user-agent to kotlin
1 parent beef731 commit 69b0a2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/kotlin/src/main/kotlin/io/appwrite/Client.kt.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ class Client @JvmOverloads constructor(
6262
init {
6363
headers = mutableMapOf(
6464
"content-type" to "application/json",
65-
"origin" to "{{ spec.title | caseLower }}-kotlin://${context.packageName}",
66-
"user-agent" to "${context.packageName}/${appVersion}, ${System.getProperty("http.agent")}",
65+
"user-agent" to "{{spec.title | caseUcfirst}}Kotlin/{{ sdk.version }} (${os.type()} ${os.version()}; ${os.arch()})",
6766
"x-sdk-version" to "{{spec.title | caseDash}}:{{ language.name | caseLower }}:${BuildConfig.SDK_VERSION}"{% if spec.global.defaultHeaders | length > 0 %},{% endif %}
6867

6968

0 commit comments

Comments
 (0)