From acbd45bedaf86e6bca4c236f4606413798e69c47 Mon Sep 17 00:00:00 2001 From: DevilXD Date: Sat, 24 Dec 2022 10:46:21 +0100 Subject: [PATCH] Fix GQL requests not sending the proper user agent --- twitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitch.py b/twitch.py index d2dcebe5..8ff9b890 100644 --- a/twitch.py +++ b/twitch.py @@ -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()