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 beef731 commit 69b0a2cCopy full SHA for 69b0a2c
templates/kotlin/src/main/kotlin/io/appwrite/Client.kt.twig
@@ -62,8 +62,7 @@ class Client @JvmOverloads constructor(
62
init {
63
headers = mutableMapOf(
64
"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")}",
+ "user-agent" to "{{spec.title | caseUcfirst}}Kotlin/{{ sdk.version }} (${os.type()} ${os.version()}; ${os.arch()})",
67
"x-sdk-version" to "{{spec.title | caseDash}}:{{ language.name | caseLower }}:${BuildConfig.SDK_VERSION}"{% if spec.global.defaultHeaders | length > 0 %},{% endif %}
68
69
0 commit comments