diff --git a/src/warc2zim/content_rewriting/generic.py b/src/warc2zim/content_rewriting/generic.py index 4f41668..cd13804 100644 --- a/src/warc2zim/content_rewriting/generic.py +++ b/src/warc2zim/content_rewriting/generic.py @@ -154,7 +154,7 @@ def get_rewrite_mode(self, record, mimetype): def get_resourcetype_rewrite_mode(self, record, resourcetype, mimetype): """Get current record rewrite mode based on WARC-Resource-Type and mimetype""" - if resourcetype in ["document", "xhr"] and mimetype == "text/html": + if resourcetype in ["document", "xhr", "fetch"] and mimetype == "text/html": # TODO : Handle header "Accept" == "application/json" if getattr(record, "method", "GET") == "GET": return "html"