|
14 | 14 | Copyright 2018-2024 Game Maker 2k - http://intdb.sourceforge.net/ |
15 | 15 | Copyright 2018-2024 Kazuki Przyborowski - https://github.com/KazukiPrzyborowski |
16 | 16 |
|
17 | | - $FileInfo: pycatfile.py - Last Update: 8/14/2025 Ver. 0.19.6 RC 1 - Author: cooldude2k $ |
| 17 | + $FileInfo: pycatfile.py - Last Update: 8/14/2025 Ver. 0.19.8 RC 1 - Author: cooldude2k $ |
18 | 18 | ''' |
19 | 19 |
|
20 | 20 | from __future__ import absolute_import, division, print_function, unicode_literals, generators, with_statement, nested_scopes |
@@ -353,7 +353,7 @@ def decode_unicode_escape(value): |
353 | 353 | __file_format_dict__ = __file_format_multi_dict__[__file_format_default__] |
354 | 354 | __project__ = __program_name__ |
355 | 355 | __project_url__ = "https://github.com/GameMaker2k/PyCatFile" |
356 | | -__version_info__ = (0, 19, 6, "RC 1", 1) |
| 356 | +__version_info__ = (0, 19, 8, "RC 1", 1) |
357 | 357 | __version_date_info__ = (2025, 8, 14, "RC 1", 1) |
358 | 358 | __version_date__ = str(__version_date_info__[0]) + "." + str( |
359 | 359 | __version_date_info__[1]).zfill(2) + "." + str(__version_date_info__[2]).zfill(2) |
@@ -9314,10 +9314,10 @@ def download_file_from_http_file(url, headers=None, usehttp=__use_http_lib__): |
9314 | 9314 | if usehttp == 'requests' and haverequests: |
9315 | 9315 | if username and password: |
9316 | 9316 | response = requests.get( |
9317 | | - rebuilt_url, headers=headers, auth=(username, password), stream=True |
| 9317 | + rebuilt_url, headers=headers, auth=(username, password), timeout=(5, 30), stream=True |
9318 | 9318 | ) |
9319 | 9319 | else: |
9320 | | - response = requests.get(rebuilt_url, headers=headers, stream=True) |
| 9320 | + response = requests.get(rebuilt_url, headers=headers, timeout=(5, 30), stream=True) |
9321 | 9321 | response.raw.decode_content = True |
9322 | 9322 | shutil.copyfileobj(response.raw, httpfile) |
9323 | 9323 |
|
|
0 commit comments