freaktechnik / twitchbots

A directory of Twitch chat bot accounts
https://twitchbots.info
MIT License
12 stars 2 forks source link

Invalid charset is sent on API calls #113

Closed ChlorideCull closed 1 year ago

ChlorideCull commented 2 years ago

The Content-Type header on both the V1 and V2 API incorrectly specifies the charset as utf8 when it should be utf-8 (see the IANA registered character set names), which is causing issues with HttpClient.GetFromJsonAsync in .NET 6.

https://github.com/freaktechnik/twitchbots/blob/36c026bc35f8b49d4bb5c7090f579d2cea0e0bae/Mini/API/API.php#L47

ChlorideCull commented 1 year ago

@freaktechnik is this deployed to the site? Seems like https://api.twitchbots.info/v2/bot is still returning application/json;charset=utf8 as content type.