mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
refactor: simplify header assignment in HttpDownloader
This commit is contained in:
@@ -17,9 +17,6 @@ class HttpDownloader:
|
||||
else:
|
||||
options = {"dir": save_path}
|
||||
if header:
|
||||
if isinstance(header, list):
|
||||
options["header"] = header
|
||||
else:
|
||||
options["header"] = header
|
||||
if out:
|
||||
options["out"] = out
|
||||
|
||||
Reference in New Issue
Block a user