Skip to content

Commit

Permalink
Fix content type overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
jcushman committed Dec 9, 2024
1 parent d8c83ff commit d0089ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nabit/lib/backends/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d0089ff

Please sign in to comment.