Merge pull request #404 from rick-masters/add-curl-header-for-download
Add curl header to bypass suspected savannah throttling.
This commit is contained in:
commit
969f42155b
|
@ -294,7 +294,8 @@ this script the next time")
|
||||||
|
|
||||||
# Actually download the file
|
# Actually download the file
|
||||||
headers = {
|
headers = {
|
||||||
"Accept-Encoding": "identity"
|
"Accept-Encoding": "identity",
|
||||||
|
"User-Agent": "curl/7.88.1"
|
||||||
}
|
}
|
||||||
if not os.path.isfile(abs_file_name):
|
if not os.path.isfile(abs_file_name):
|
||||||
print(f"Downloading: {file_name}")
|
print(f"Downloading: {file_name}")
|
||||||
|
|
Loading…
Reference in New Issue