fix download error
This commit is contained in:
2
core.py
2
core.py
@@ -132,7 +132,7 @@ def download_file_with_filename(url, filename, path, filepath, json_headers=None
|
|||||||
if not json_headers == None:
|
if not json_headers == None:
|
||||||
if 'headers' in json_headers:
|
if 'headers' in json_headers:
|
||||||
headers.update(json_headers)
|
headers.update(json_headers)
|
||||||
if configProxy:
|
if configProxy.enable:
|
||||||
proxies = configProxy.proxies()
|
proxies = configProxy.proxies()
|
||||||
r = requests.get(url, headers=headers, timeout=configProxy.timeout, proxies=proxies)
|
r = requests.get(url, headers=headers, timeout=configProxy.timeout, proxies=proxies)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user