Skip to content

Commit

Permalink
Merge pull request #37 from OnroerendErfgoed/develop
Browse files Browse the repository at this point in the history
Fix incorrect header
  • Loading branch information
claeyswo authored Oct 16, 2023
2 parents cd83149 + c586594 commit 1d8d872
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.7.1 (16/10/2023)
==================

- Fix incorrect header

2.7.0 (13/10/2023)
==================

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
]

setup(name='storageprovider-client',
version='2.7.0',
version='2.7.1',
description='storageprovider client',
long_description=README + '\n\n' + CHANGES,
classifiers=[
Expand Down
4 changes: 2 additions & 2 deletions storageprovider/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_object_streaming(self, container_key, object_key, system_token=None):
"""
headers = {}
if system_token:
headers = {self.system_token_header: system_token}
headers = self.get_auth_header(system_token)
res = requests.get(
self.base_url + "/containers/" + container_key + "/" + object_key,
headers=headers,
Expand Down Expand Up @@ -270,7 +270,7 @@ def get_container_data_streaming(
translations = translations or {}
headers = {"Accept": "application/zip"}
if system_token:
headers.update({self.system_token_header: system_token})
headers = self.get_auth_header(system_token)
res = requests.get(
self.base_url + "/containers/" + container_key,
params=translations,
Expand Down

0 comments on commit 1d8d872

Please sign in to comment.