From d0089ff0a91b4d572300d2aad53cb8c1d0143575 Mon Sep 17 00:00:00 2001 From: Jack Cushman Date: Mon, 9 Dec 2024 15:22:45 -0500 Subject: [PATCH] Fix content type overrides --- src/nabit/lib/backends/url.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nabit/lib/backends/url.py b/src/nabit/lib/backends/url.py index f6d00e8..2007f46 100644 --- a/src/nabit/lib/backends/url.py +++ b/src/nabit/lib/backends/url.py @@ -58,7 +58,7 @@ def _collect(self, files_dir: Path) -> None: """ warc_path = files_dir.parent / 'headers.warc' with open(warc_path, 'ab') as fh: - warc_writer = FileWriter(fh, warc_path, gzip=False) + warc_writer = FileWriter(fh, warc_path, gzip=False, content_type_overrides=self.content_type_overrides) with capture_http(warc_writer): warc_writer.custom_out_path = self.output requests.get(self.url, timeout=self.timeout)