Skip to content

Commit 2122b2a

Browse files
committed
Fixed header values
1 parent b5f91bd commit 2122b2a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Client {
99
this.endpoint = 'https://appwrite.io/v1';
1010
this.headers = {
1111
'content-type': '',
12-
'x-sdk-version': 'appwrite:nodejs:2.2.0',
12+
'x-sdk-version': 'appwrite:nodejs:2.2.1',
1313
'X-Appwrite-Response-Format' : '0.8.0',
1414
};
1515
this.selfSigned = false;
@@ -99,7 +99,7 @@ class Client {
9999
* @param value string
100100
*/
101101
addHeader(key, value) {
102-
this.headers[key.toLowerCase()] = value.toLowerCase();
102+
this.headers[key.toLowerCase()] = value;
103103

104104
return this;
105105
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "node-appwrite",
33
"homepage": "https://appwrite.io/support",
44
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
5-
"version": "2.2.0",
5+
"version": "2.2.1",
66
"license": "BSD-3-Clause",
77
"main": "index.js",
88
"repository": {

0 commit comments

Comments
 (0)