[dl:http] support 'metadata-http' option name (gh#7661)

This commit is contained in:
dualfroz committed 2026-10-10 17:33:48 +02:00
1 parent b5186d86fa
commit 934af37f1b
2 files changed
+11 -1

No files matched your search

+10
View File
@@ -166,6 +166,16 @@ class TestDownloaderConfig(unittest.TestCase):
self.assertEqual(dl.rate(), 42)
self.assertEqual(dl.part, False)
def test_config_http_metadata(self):
for key in ("metadata-http", "http-metadata"):
config.clear()
config.set((), key, "gdl_http")
job = FakeJob()
dl = downloader.find("http")(job)
self.assertEqual(dl.metadata, "gdl_http", key)
class TestDownloaderBase(unittest.TestCase):