File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
templates/kotlin/src/main/kotlin/io/appwrite Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,9 @@ class Client @JvmOverloads constructor(
62
62
init {
63
63
headers = mutableMapOf(
64
64
"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
+
67
68
68
69
{% for key ,header in spec .global .defaultHeaders %}
69
70
"{{ key | caseLower }}" to "{{ header }}"{% if not loop .last %},{% endif %}
You can’t perform that action at this time.
0 commit comments