Skip to content

Commit

Permalink
Merge pull request #75 from vigonotion/fix/jsonserialize
Browse files Browse the repository at this point in the history
Fix json serialization strategy for signature building
  • Loading branch information
vigonotion authored Jul 13, 2022
2 parents ac58e1c + 1349808 commit 3402dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygti/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async def request(

payload.update({"version": 38})

data = json.dumps(payload).encode("UTF-8")
data = self.websession.json_serialize(payload).encode("UTF-8")

signature = base64.b64encode(
hmac.new(self.password.encode("UTF-8"), data, hashlib.sha1).digest()
Expand Down

0 comments on commit 3402dc9

Please sign in to comment.