Skip to content

Commit

Permalink
session: set Accept header
Browse files Browse the repository at this point in the history
  • Loading branch information
yzqzss committed Aug 22, 2023
1 parent 55e79ea commit 36fc712
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wikiteam3/dumpgenerator/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ def sleep(self, response=None):
session.headers.update({"User-Agent": get_random_UserAgent()})
setup_random_UserAgent(session) # monkey patch

# Set accept header
session.headers.update({"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"})

# Set HTTP Basic Auth
if args.http_user and args.http_password:
session.auth = (args.user, args.password)
Expand Down

0 comments on commit 36fc712

Please sign in to comment.