[patreon] fix '403 Forbidden' errors

send 'Content-Type' headers for API requests
pull/3353/head
Mike Fährmann 2 years ago
parent b4253f69c9
commit c19b1f03b9
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -103,7 +103,10 @@ class PatreonExtractor(Extractor):
"""Return all relevant post objects""" """Return all relevant post objects"""
def _pagination(self, url): def _pagination(self, url):
headers = {"Referer": self.root} headers = {
"Referer" : self.root + "/",
"Content-Type": "application/vnd.api+json",
}
while url: while url:
url = text.ensure_http_scheme(url) url = text.ensure_http_scheme(url)

Loading…
Cancel
Save