From 3734c721435ae91638460b90bcfe4d4d2eb4c514 Mon Sep 17 00:00:00 2001 From: Artur Pak Date: Fri, 16 Aug 2024 12:54:37 +0800 Subject: [PATCH] Add stream parameter when downloading --- .../devices/oem_autoinstall/oem_autoinstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device-connectors/src/testflinger_device_connectors/devices/oem_autoinstall/oem_autoinstall.py b/device-connectors/src/testflinger_device_connectors/devices/oem_autoinstall/oem_autoinstall.py index b825ed9f..fa5a24d9 100644 --- a/device-connectors/src/testflinger_device_connectors/devices/oem_autoinstall/oem_autoinstall.py +++ b/device-connectors/src/testflinger_device_connectors/devices/oem_autoinstall/oem_autoinstall.py @@ -222,7 +222,7 @@ def download_with_credentials(self, url, token_file=None, filename=None): # Download the file try: - response = requests.get(url, auth=auth) + response = requests.get(url, auth=auth, stream=True) if response.status_code == 200: with open(filename, "wb") as file: