mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-23 03:02:50 +01:00
[patreon] fix '403 Forbidden' errors
send 'Content-Type' headers for API requests
This commit is contained in:
parent
b4253f69c9
commit
c19b1f03b9
@ -103,7 +103,10 @@ class PatreonExtractor(Extractor):
|
||||
"""Return all relevant post objects"""
|
||||
|
||||
def _pagination(self, url):
|
||||
headers = {"Referer": self.root}
|
||||
headers = {
|
||||
"Referer" : self.root + "/",
|
||||
"Content-Type": "application/vnd.api+json",
|
||||
}
|
||||
|
||||
while url:
|
||||
url = text.ensure_http_scheme(url)
|
||||
|
Loading…
Reference in New Issue
Block a user