Skip to content

Commit 6f6e86b

Browse files
committed
Fix header casting and more minor fixes
1 parent a339dc5 commit 6f6e86b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

appwrite/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def __init__(self):
88
self._endpoint = 'https://appwrite.io/v1'
99
self._global_headers = {
1010
'content-type': '',
11-
'x-sdk-version': 'appwrite:python:0.2.0',
11+
'x-sdk-version': 'appwrite:python:0.2.1',
1212
'X-Appwrite-Response-Format' : '0.8.0',
1313
}
1414

@@ -21,7 +21,7 @@ def set_endpoint(self, endpoint):
2121
return self
2222

2323
def add_header(self, key, value):
24-
self._global_headers[key.lower()] = value.lower()
24+
self._global_headers[key.lower()] = value
2525
return self
2626

2727
def set_project(self, value):

docs/examples/functions/create-tag.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ client = Client()
1111

1212
functions = Functions(client)
1313

14-
result = functions.create_tag('[FUNCTION_ID]', '[COMMAND]', open('/path/to/file.png', 'rb'))
14+
result = functions.create_tag('[FUNCTION_ID]', '[COMMAND]', '')

docs/examples/storage/create-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ client = Client()
1111

1212
storage = Storage(client)
1313

14-
result = storage.create_file(open('/path/to/file.png', 'rb'))
14+
result = storage.create_file('')

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
setuptools.setup(
44
name = 'appwrite',
55
packages = ['appwrite', 'appwrite/services'],
6-
version = '0.2.0',
6+
version = '0.2.1',
77
license='BSD-3-Clause',
88
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',
99
author = 'Appwrite Team',
1010
author_email = '[email protected]',
1111
maintainer = 'Appwrite Team',
1212
maintainer_email = '[email protected]',
1313
url = 'https://appwrite.io/support',
14-
download_url='https://github.com/appwrite/sdk-for-python/archive/0.2.0.tar.gz',
14+
download_url='https://github.com/appwrite/sdk-for-python/archive/0.2.1.tar.gz',
1515
# keywords = ['SOME', 'MEANINGFULL', 'KEYWORDS'],
1616
install_requires=[
1717
'requests',

0 commit comments

Comments
 (0)