We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e28bc15 commit 1236cceCopy full SHA for 1236cce
appwrite/client.py
@@ -1,6 +1,7 @@
1
import io
2
import json
3
import os
4
+import platform
5
import requests
6
from .input_file import InputFile
7
from .exception import AppwriteException
@@ -13,7 +14,7 @@ def __init__(self):
13
14
self._endpoint = 'https://cloud.appwrite.io/v1'
15
self._global_headers = {
16
'content-type': '',
- 'user-agent' : f'AppwritePythonSDK/9.0.1 ({os.uname().sysname}; {os.uname().version}; {os.uname().machine})',
17
+ 'user-agent' : f'AppwritePythonSDK/9.0.1 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
18
'x-sdk-name': 'Python',
19
'x-sdk-platform': 'server',
20
'x-sdk-language': 'python',
0 commit comments