Skip to content

Commit

Permalink
Send 'Accept: */*' header from WEKO3 ContentProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
shota-matsumoto-lm committed Oct 23, 2023
1 parent 87362f7 commit dd09840
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions repo2docker/contentproviders/weko3.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def content_id(self):
def urlopen(self, req, headers=None):
"""A urlopen() helper"""
req.add_header("User-Agent", "repo2docker {}".format(__version__))
req.add_header("Accept", "*/*")
if headers is not None:
for key, value in headers.items():
req.add_header(key, value)
Expand Down

0 comments on commit dd09840

Please sign in to comment.