diff --git a/topgg/http.py b/topgg/http.py index 08160d67..897bba2f 100644 --- a/topgg/http.py +++ b/topgg/http.py @@ -44,7 +44,7 @@ async def _json_or_text( response: ClientResponse, ) -> Union[dict, str]: text = await response.text() - if response.headers["Content-Type"] == "application/json; charset=utf-8": + if "application/json" in response.headers["Content-Type"]: return json.loads(text) return text