You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying an Accept header with value Application/json (with an uppsercase letter at beginning) , PostgREST returns a 415 - Unsupported Media Type with content:
{
"code": "PGRST107",
"details": null,
"hint": null,
"message": "None of these media types are available: Application/json"
}
As stated in RFC 7231, Media Types are case-insensitive.
PostgREST may then use the application/json Media Type Handler.
Thank you for all this work.
The text was updated successfully, but these errors were encountered:
The Accept header is parsed case-insensitively now, introducing proper
handling of media types specified in upper- and/or mixed-case.
FixesPostgREST#3478
The Accept header is parsed case-insensitively now, introducing proper
handling of media types specified in upper- and/or mixed-case.
FixesPostgREST#3478
Environment
Description of issue
When specifying an
Accept
header with valueApplication/json
(with an uppsercase letter at beginning) , PostgREST returns a415 - Unsupported Media Type
with content:As stated in RFC 7231, Media Types are case-insensitive.
PostgREST may then use the
application/json
Media Type Handler.Thank you for all this work.
The text was updated successfully, but these errors were encountered: