Fix GQL requests not sending the proper user agent
This commit is contained in:
1 parent
348d039b28
commit
acbd45beda
1 file changed
+1
-1
@@ -1511,7 +1511,7 @@ class Twitch:
|
|||||||
"POST",
|
"POST",
|
||||||
"https://gql.twitch.tv/gql",
|
"https://gql.twitch.tv/gql",
|
||||||
json=ops,
|
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),
|
invalidate_after=getattr(auth_state, "integrity_expires", None),
|
||||||
) as response:
|
) as response:
|
||||||
response_json: JsonType | list[JsonType] = await response.json()
|
response_json: JsonType | list[JsonType] = await response.json()
|
||||||
|
|||||||
Reference in new issue
Block a user