From d929fbaeaa703c627afe00e4b0108c87f219d9da Mon Sep 17 00:00:00 2001 From: Moyasee Date: Fri, 2 Jan 2026 23:23:08 +0200 Subject: [PATCH] refactor: simplify header assignment in HttpDownloader --- python_rpc/http_downloader.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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)