feat: add support for custom http headers in downloader

This commit is contained in:
Hachi-R
2025-04-11 15:37:51 -03:00
parent 85fb57527a
commit 4d76182f2e
2 changed files with 39 additions and 5 deletions

View File

@@ -20,8 +20,13 @@ class HttpDownloader:
"--silent"
])
if header:
cmd.extend(["--header", header])
if allow_multiple_connections:
cmd.extend(["--connections", "16"])
else:
cmd.extend(["--connections", "1"])
print(f"running hydra-httpdl: {' '.join(cmd)}")