eris icon indicating copy to clipboard operation
eris copied to clipboard

Parse content-type header in a spec complicant way

Open anotherdoesnm opened this issue 3 months ago • 0 comments

The Eris library (and potentially other related libraries) enforces strict checks on the application/json content type when processing JSON responses (this behavior is likely influenced by Discord's implementation). However, the Content-Type header can include additional parameters, such as encoding, separated by a semicolon, and yhis flexibility causes issues when using Eris with Spacebar, an open-source reimplementation of the Discord API.

anotherdoesnm avatar Oct 03 '25 11:10 anotherdoesnm