@@ -129,7 +129,6 @@ def __init__(self, **kwargs):
129
129
self ._async_session = httpx .AsyncClient (
130
130
transport = AsyncRetryTransport (retry = self .retry ),
131
131
headers = {
132
- "authorization" : f"Bearer { self .api_key } " ,
133
132
"x-atlan-agent" : "sdk" ,
134
133
"x-atlan-agent-id" : "python" ,
135
134
"x-atlan-client-origin" : "product_sdk" ,
@@ -726,7 +725,6 @@ async def _s3_presigned_url_file_upload(self, api, upload_file):
726
725
params = copy .deepcopy (self ._request_params )
727
726
# No need of Atlan's API token here
728
727
params ["headers" ].pop ("authorization" , None )
729
- self ._async_session .headers .pop ("authorization" , None )
730
728
return await self ._call_api_internal (api , path , params , binary_data = upload_file )
731
729
732
730
async def _azure_blob_presigned_url_file_upload (self , api , upload_file ):
@@ -735,7 +733,6 @@ async def _azure_blob_presigned_url_file_upload(self, api, upload_file):
735
733
params = copy .deepcopy (self ._request_params )
736
734
# No need of Atlan's API token here
737
735
params ["headers" ].pop ("authorization" , None )
738
- self ._async_session .headers .pop ("authorization" , None )
739
736
# Add mandatory headers for azure blob storage
740
737
params ["headers" ]["x-ms-blob-type" ] = "BlockBlob"
741
738
return await self ._call_api_internal (api , path , params , binary_data = upload_file )
@@ -746,7 +743,6 @@ async def _gcs_presigned_url_file_upload(self, api, upload_file):
746
743
params = copy .deepcopy (self ._request_params )
747
744
# No need of Atlan's API token here
748
745
params ["headers" ].pop ("authorization" , None )
749
- self ._async_session .headers .pop ("authorization" , None )
750
746
return await self ._call_api_internal (api , path , params , binary_data = upload_file )
751
747
752
748
async def _presigned_url_file_download (self , api , file_path : str ):
@@ -755,7 +751,6 @@ async def _presigned_url_file_download(self, api, file_path: str):
755
751
params = copy .deepcopy (self ._request_params )
756
752
# No need of Atlan's API token here
757
753
params ["headers" ].pop ("authorization" , None )
758
- self ._async_session .headers .pop ("authorization" , None )
759
754
return await self ._call_api_internal (
760
755
api , path , params , download_file_path = file_path
761
756
)
0 commit comments