Skip to content

Conversation

@caugner
Copy link

@caugner caugner commented Mar 14, 2024

Currently, reqwest_eventsource cannot be used for endpoints that return content-type: application/json; charset=UTF-8", due to the following error: Invalid header value: "application/json; charset=UTF-8"

This is because the full header value is passed to mime::parse(), and mime only supports "application/json":

https://github.com/hyperium/mime/blob/938484de95445a2af931515d2b7252612c575da7/mime-parse/src/constants.rs#L461

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant