diff --git a/python_rpc/http_downloader.py b/python_rpc/http_downloader.py index 0ddf5f8e..723f6d4b 100644 --- a/python_rpc/http_downloader.py +++ b/python_rpc/http_downloader.py @@ -17,10 +17,7 @@ class HttpDownloader: else: options = {"dir": save_path} if header: - if isinstance(header, list): - options["header"] = header - else: - options["header"] = header + options["header"] = header if out: options["out"] = out downloads = self.aria2.add(url, options=options)