Skip to content

Commit 7402361

Browse files
authored
Merge pull request #11 from solvexia/fix-access-token-copy
Fix access token dictionary copy
2 parents 71f1a97 + 7a903bd commit 7402361

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
build/
22
dist/
3-
solvexia_sdk.egg-info
3+
solvexia_sdk.egg-info
4+
.DS_Store

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Changelog
2+
3+
## 1.0.2
4+
- Fixed the issue of not being able to upload small file after a large file
5+
6+
## 1.0.1
7+
- Initial version

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
setuptools.setup(
77
name="solvexia_sdk",
8-
version="1.0.1",
8+
version="1.0.2",
99
author="SolveXia Pty Ltd",
1010
author_email="support@solvexia.com",
11-
description="A development kit written in Python to access and work SolveXia resources",
11+
description="A development kit written in Python to access and work with SolveXia resources",
1212
long_description=long_description,
1313
long_description_content_type="text/markdown",
1414
url="https://github.com/solvexia/solvexia-python-sdk",

solvexia_sdk/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def status_code_check(response, error_message):
3535
sys.exit()
3636

3737
def api_post(url_path, payload):
38-
headers = access_token
38+
headers = access_token.copy()
3939
headers['Content-Type'] = 'application/json'
4040
response = requests.post(base_url + url_path, data=json.dumps(payload), headers=headers)
4141
return response

0 commit comments

Comments
 (0)