From 59918f279d970dfdfafd82b5e383bb354417e96a Mon Sep 17 00:00:00 2001 From: Julien Moura Date: Wed, 4 Sep 2024 11:09:08 +0200 Subject: [PATCH] fix(downloader): stream option was not propagated to get args --- qgis_deployment_toolbelt/utils/file_downloader.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qgis_deployment_toolbelt/utils/file_downloader.py b/qgis_deployment_toolbelt/utils/file_downloader.py index bf00487e..858d5dfc 100644 --- a/qgis_deployment_toolbelt/utils/file_downloader.py +++ b/qgis_deployment_toolbelt/utils/file_downloader.py @@ -130,7 +130,9 @@ def download_remote_file_to_local( dl_session.mount("https://", TruststoreAdapter()) with dl_session.get( - url=requote_uri(remote_url_to_download), stream=True, timeout=timeout + url=requote_uri(remote_url_to_download), + stream=use_stream, + timeout=timeout, ) as req: req.raise_for_status() if use_stream: