Skip to content

Commit

Permalink
Fix GQL requests not sending the proper user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
DevilXD committed Dec 24, 2022
1 parent 348d039 commit acbd45b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ async def gql_request(
"POST",
"https://gql.twitch.tv/gql",
json=ops,
headers=auth_state.headers(gql=True),
headers=auth_state.headers(user_agent=USER_AGENT, gql=True),
invalidate_after=getattr(auth_state, "integrity_expires", None),
) as response:
response_json: JsonType | list[JsonType] = await response.json()
Expand Down

0 comments on commit acbd45b

Please sign in to comment.