@@ -127,7 +127,7 @@ def _get_credentials(self, post_data: dict) -> None:
127
127
headers = {
128
128
"ecoinvent-api-client-library" : "ecoinvent_interface" ,
129
129
"ecoinvent-api-client-library-version" : __version__ ,
130
- } | self .custom_headers
130
+ }. update ( self .custom_headers )
131
131
response = requests .post (sso_url , post_data , headers = headers , timeout = 20 )
132
132
133
133
if response .ok :
@@ -148,7 +148,7 @@ def _get_all_reports(self) -> dict:
148
148
"Authorization" : f"Bearer { self .access_token } " ,
149
149
"ecoinvent-api-client-library" : "ecoinvent_interface" ,
150
150
"ecoinvent-api-client-library-version" : __version__ ,
151
- } | self .custom_headers
151
+ }. update ( self .custom_headers )
152
152
message = """Requesting URL.
153
153
URL: {reports_url}
154
154
Class: {self.__class__.__name__}
@@ -166,7 +166,7 @@ def _get_all_files(self) -> dict:
166
166
"Authorization" : f"Bearer { self .access_token } " ,
167
167
"ecoinvent-api-client-library" : "ecoinvent_interface" ,
168
168
"ecoinvent-api-client-library-version" : __version__ ,
169
- } | self .custom_headers
169
+ }. update ( self .custom_headers )
170
170
message = """Requesting URL.
171
171
URL: {files_url}
172
172
Class: {self.__class__.__name__}
@@ -254,7 +254,7 @@ def _download_api_file(
254
254
"Authorization" : f"Bearer { self .access_token } " ,
255
255
"ecoinvent-api-client-library" : "ecoinvent_interface" ,
256
256
"ecoinvent-api-client-library-version" : __version__ ,
257
- } | self .custom_headers
257
+ }. update ( self .custom_headers )
258
258
self ._streaming_download (
259
259
url = url ,
260
260
params = params ,
@@ -273,7 +273,7 @@ def _download_s3(
273
273
"Authorization" : f"Bearer { self .access_token } " ,
274
274
"ecoinvent-api-client-library" : "ecoinvent_interface" ,
275
275
"ecoinvent-api-client-library-version" : __version__ ,
276
- } | self .custom_headers
276
+ }. update ( self .custom_headers )
277
277
s3_link = requests .get (url , headers = headers , timeout = 20 ).json ()["download_url" ]
278
278
self ._streaming_download (
279
279
url = s3_link , params = {}, directory = directory , filename = filename
0 commit comments