Skip to content

Commit 969f421

Browse files
authored
Merge pull request #404 from rick-masters/add-curl-header-for-download
Add curl header to bypass suspected savannah throttling.
2 parents 78a7a5e + 7a0f036 commit 969f421

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ def download_file(url, directory, file_name):
294294

295295
# Actually download the file
296296
headers = {
297-
"Accept-Encoding": "identity"
297+
"Accept-Encoding": "identity",
298+
"User-Agent": "curl/7.88.1"
298299
}
299300
if not os.path.isfile(abs_file_name):
300301
print(f"Downloading: {file_name}")

0 commit comments

Comments
 (0)