From 80a2ff2d38c01e42ccdf43c3b7e97bd8f3ce6e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 14 Jan 2023 22:34:46 +0100 Subject: [PATCH] support setting 'write-pages' to "ALL" to show authentication header, cookies, etc --- gallery_dl/extractor/common.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py index 660f7dbf..1016119f 100644 --- a/gallery_dl/extractor/common.py +++ b/gallery_dl/extractor/common.py @@ -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)