Skip to content

Commit 7a0f036

Browse files
committed
Add curl header to bypass suspected savannah throttling.
1 parent 5b7175d commit 7a0f036

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)