Skip to content

Commit 166c157

Browse files
committed
Revert hardcoded header names
1 parent 93cbf69 commit 166c157

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/android/library/src/main/java/io/appwrite/Client.kt.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ class Client @JvmOverloads constructor(
381381
)
382382

383383
offset += CHUNK_SIZE
384-
headers["x-appwrite-id"] = result!!["\$id"].toString()
384+
headers["x-{{ spec.title | caseLower }}-id"] = result!!["\$id"].toString()
385385
onProgress?.invoke(
386386
UploadProgress(
387387
id = result!!["\$id"].toString(),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ class Client @JvmOverloads constructor(
340340
)
341341

342342
offset += CHUNK_SIZE
343-
headers["x-appwrite-id"] = result!!["\$id"].toString()
343+
headers["x-{{ spec.title | caseLower }}-id"] = result!!["\$id"].toString()
344344
onProgress?.invoke(
345345
UploadProgress(
346346
id = result!!["\$id"].toString(),

0 commit comments

Comments
 (0)