@@ -154,7 +154,7 @@ def get_single_granule(self, granule_id):
154154 self .__restructure_each_granule_result (each_granules_query_result_stripped )
155155 return each_granules_query_result_stripped
156156
157- def delete_facade (self , current_url : URL ):
157+ def delete_facade (self , current_url : URL , bearer_token : str ):
158158 actual_path = current_url .path
159159 actual_path = actual_path if actual_path .endswith ('/' ) else f'{ actual_path } /'
160160 actual_path = f'{ actual_path } actual'
@@ -165,12 +165,12 @@ def delete_facade(self, current_url: URL):
165165 'path' : actual_path ,
166166 'httpMethod' : 'DELETE' ,
167167 'headers' : {
168- 'Accept' : '*/*' , 'Accept-Encoding' : 'gzip, deflate' , 'Authorization' : 'Bearer xxx' ,
168+ 'Accept' : '*/*' , 'Accept-Encoding' : 'gzip, deflate' , 'Authorization' : bearer_token ,
169169 'Host' : current_url .hostname , 'User-Agent' : 'python-requests/2.28.2' ,
170170 'X-Amzn-Trace-Id' : 'Root=1-64a66e90-6fa8b7a64449014639d4f5b4' , 'X-Forwarded-For' : '44.236.15.58' ,
171171 'X-Forwarded-Port' : '443' , 'X-Forwarded-Proto' : 'https' },
172172 'multiValueHeaders' : {
173- 'Accept' : ['*/*' ], 'Accept-Encoding' : ['gzip, deflate' ], 'Authorization' : ['Bearer xxx' ],
173+ 'Accept' : ['*/*' ], 'Accept-Encoding' : ['gzip, deflate' ], 'Authorization' : [bearer_token ],
174174 'Host' : [current_url .hostname ], 'User-Agent' : ['python-requests/2.28.2' ],
175175 'X-Amzn-Trace-Id' : ['Root=1-64a66e90-6fa8b7a64449014639d4f5b4' ],
176176 'X-Forwarded-For' : ['127.0.0.1' ], 'X-Forwarded-Port' : ['443' ], 'X-Forwarded-Proto' : ['https' ]
0 commit comments