Skip to content

Commit

Permalink
Fix login error 403 (#208)
Browse files Browse the repository at this point in the history
* Fix login error 403 #205

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
Dielee and pre-commit-ci[bot] authored Jan 27, 2023
1 parent ee19450 commit eec42aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tgtg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,11 @@ def get_credentials(self):
@property
def _headers(self):
headers = {
"user-agent": self.user_agent,
"accept-language": self.language,
"accept": "application/json",
"Accept-Encoding": "gzip",
"accept-language": self.language,
"content-type": "application/json; charset=utf-8",
"user-agent": self.user_agent,
}
if self.cookie:
headers["Cookie"] = self.cookie
Expand Down

0 comments on commit eec42aa

Please sign in to comment.