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 24cd303 commit beef731Copy full SHA for beef731
templates/kotlin/src/main/kotlin/io/appwrite/Client.kt.twig
@@ -62,7 +62,8 @@ class Client @JvmOverloads constructor(
62
init {
63
headers = mutableMapOf(
64
"content-type" to "application/json",
65
- "User-Agent" to "{{spec.title | caseUcfirst}}Kotlin/${BuildConfig.SDK_VERSION} (${os.type()} ${os.version()}; ${os.arch()})",
+ "origin" to "{{ spec.title | caseLower }}-kotlin://${context.packageName}",
66
+ "user-agent" to "${context.packageName}/${appVersion}, ${System.getProperty("http.agent")}",
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