Skip to content

Commit 2a3d0df

Browse files
authored
Fix header contamination (#29)
* fix header contamination in download file * update changelog * update version * review change
1 parent bc92440 commit 2a3d0df

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
# 1.3.1
4+
- Fixed header contamination in download file content-type
5+
36
# 1.3.0
47
- Updated version and usage of the filesplit package
58
- Updated README.md with information about scopes and the license

setup.py

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

66
setuptools.setup(
77
name="solvexia_sdk",
8-
version="1.3.0",
9-
author="SolveXia Pty Ltd",
8+
version="1.3.1",
9+
author="Solvexia Pty Ltd",
1010
author_email="support@solvexia.com",
11-
description="A development kit written in Python to access and work with 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/file/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def upload_file(self, file):
3232

3333
def download_file(self):
3434
download_file_url = api.base_url + f"files/{self.file_id}"
35-
headers = api.access_token
35+
headers = api.access_token.copy()
3636
headers['Content-Type'] = 'application/octet-stream'
3737
response = requests.get(download_file_url, headers=headers)
3838
api.status_code_check(response, f"Error downloading file with file_id {self.file_id}")

0 commit comments

Comments
 (0)