Skip to content

Commit

Permalink
fix: handle osu content types
Browse files Browse the repository at this point in the history
  • Loading branch information
NiceAesth committed Feb 26, 2023
1 parent 5793b6b commit 6833139
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aiosu/v2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ async def _request(
return orjson.loads(body)
if content_type == "application/octet-stream":
return BytesIO(body)
if content_type.startswith("application/x-osu"):
return BytesIO(body)
if content_type == "text/plain":
return body.decode()
raise APIException(415, f"Unhandled Content Type '{content_type}'")
Expand Down

0 comments on commit 6833139

Please sign in to comment.