support setting 'write-pages' to "ALL"

to show authentication header, cookies, etc
This commit is contained in:
Mike Fährmann
2023-01-14 22:34:46 +01:00
parent d6793b2c7d
commit 80a2ff2d38

View File

@@ -507,7 +507,10 @@ class Extractor():
try:
with open(path + ".txt", 'wb') as fp:
util.dump_response(
response, fp, headers=(self._write_pages == "all"))
response, fp,
headers=(self._write_pages in ("all", "ALL")),
hide_auth=(self._write_pages != "ALL")
)
except Exception as e:
self.log.warning("Failed to dump HTTP request (%s: %s)",
e.__class__.__name__, e)