Skip to content

Commit

Permalink
[hentaicosplays] add Referer to headers (#2317)
Browse files Browse the repository at this point in the history
  • Loading branch information
dragobit authored Feb 28, 2022
1 parent 4385a34 commit 781fdfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gallery_dl/extractor/hentaicosplays.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def __init__(self, match):
self.root = text.ensure_http_scheme(root)
url = "{}/story/{}/".format(self.root, self.slug)
GalleryExtractor.__init__(self, match, url)
self.session.headers["Referer"] = url

def metadata(self, page):
title = text.extract(page, "<title>", "</title>")[0]
Expand Down

0 comments on commit 781fdfa

Please sign in to comment.