diff --git a/CHANGES.txt b/CHANGES.txt index 0b2c550..0d5b156 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,8 @@ +2.7.1 (16/10/2023) +================== + +- Fix incorrect header + 2.7.0 (13/10/2023) ================== diff --git a/setup.py b/setup.py index fdbbdf2..fd9d602 100644 --- a/setup.py +++ b/setup.py @@ -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=[ diff --git a/storageprovider/client.py b/storageprovider/client.py index 53e7e50..85cc114 100644 --- a/storageprovider/client.py +++ b/storageprovider/client.py @@ -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, @@ -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,