Skip to content

Commit 24cd303

Browse files
committed
fix kotlin tests
1 parent 2dd161c commit 24cd303

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ class Client @JvmOverloads constructor(
6262
init {
6363
headers = mutableMapOf(
6464
"content-type" to "application/json",
65-
"x-sdk-version" to "{{spec.title | caseDash}}:{{ language.name | caseLower }}:${BuildConfig.SDK_VERSION}",
66-
"User-Agent" to "{{spec.title | caseUcfirst}}Kotlin/{{ sdk.version }} (${os.type()} ${os.version()}; ${os.arch()})",
65+
"User-Agent" to "{{spec.title | caseUcfirst}}Kotlin/${BuildConfig.SDK_VERSION} (${os.type()} ${os.version()}; ${os.arch()})",
66+
"x-sdk-version" to "{{spec.title | caseDash}}:{{ language.name | caseLower }}:${BuildConfig.SDK_VERSION}"{% if spec.global.defaultHeaders | length > 0 %},{% endif %}
67+
6768

6869
{% for key,header in spec.global.defaultHeaders %}
6970
"{{ key | caseLower }}" to "{{ header }}"{% if not loop.last %},{% endif %}

0 commit comments

Comments
 (0)