Skip to content

Commit b77cc50

Browse files
author
Kazuki Suzuki Przyborowski
committed
Update pyarchivefile.py
1 parent c8f3372 commit b77cc50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyarchivefile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9300,10 +9300,10 @@ def download_file_from_http_file(url, headers=None, usehttp=__use_http_lib__):
93009300
if usehttp == 'requests' and haverequests:
93019301
if username and password:
93029302
response = requests.get(
9303-
rebuilt_url, headers=headers, auth=(username, password), stream=True
9303+
rebuilt_url, headers=headers, auth=(username, password), timeout=(5, 30), stream=True
93049304
)
93059305
else:
9306-
response = requests.get(rebuilt_url, headers=headers, stream=True)
9306+
response = requests.get(rebuilt_url, headers=headers, timeout=(5, 30), stream=True)
93079307
response.raw.decode_content = True
93089308
shutil.copyfileobj(response.raw, httpfile)
93099309

0 commit comments

Comments
 (0)