@@ -881,6 +881,7 @@ def _get_maps_for_mission(self, maps_table, mission, download_dir, cache, json,
881
881
'GET' ,
882
882
product_url ,
883
883
cache = cache ,
884
+ stream = True ,
884
885
headers = self ._get_header ())
885
886
886
887
response .raise_for_status ()
@@ -917,7 +918,7 @@ def _get_maps_for_mission(self, maps_table, mission, download_dir, cache, json,
917
918
def _get_herschel_map (self , product_url , directory_path , cache ):
918
919
observation = dict ()
919
920
response = self ._request ('GET' , product_url , cache = cache ,
920
- headers = self ._get_header ())
921
+ stream = True , headers = self ._get_header ())
921
922
response .raise_for_status ()
922
923
923
924
with tarfile .open (fileobj = BytesIO (response .content )) as tar :
@@ -934,7 +935,7 @@ def _get_herschel_map(self, product_url, directory_path, cache):
934
935
def _get_herschel_spectra (self , product_url , directory_path , cache ):
935
936
spectra = dict ()
936
937
response = self ._request ('GET' , product_url , cache = cache ,
937
- headers = self ._get_header ())
938
+ stream = True , headers = self ._get_header ())
938
939
939
940
response .raise_for_status ()
940
941
0 commit comments