refactor: simplify header assignment in HttpDownloader

This commit is contained in:
Moyasee
2026-01-02 23:23:08 +02:00
parent 8fa33119d6
commit d929fbaeaa

View File

@@ -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