From c2ac665ff7a73c30e23f3fd8831466b12ce10888 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 6 Jul 2023 19:03:53 +0200 Subject: [PATCH] [fantia] send 'X-Requested-With' header (#4273) --- gallery_dl/extractor/fantia.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gallery_dl/extractor/fantia.py b/gallery_dl/extractor/fantia.py index 35c4cc4517..8186c55a9b 100644 --- a/gallery_dl/extractor/fantia.py +++ b/gallery_dl/extractor/fantia.py @@ -23,6 +23,7 @@ def items(self): self.headers = { "Accept" : "application/json, text/plain, */*", "Referer": self.root, + "X-Requested-With": "XMLHttpRequest", } _empty_plan = { "id" : 0,