Skip to content

Falcon does content type negotiation #2441

Answered by vytas7
suola asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @suola!
Yes, it's a good point, probably we haven't communicated the change well enough.

Falcon has actually been doing some kind of limited content type negotiation in the default error serializer since almost forever, but that was limited to JSON/XML/no content. In 3.0, we added support for custom JSON media handlers in the default error serializer, and since 4.0 we are respecting all media handlers there.

In 4.1, we are planning to add full content negotiation for media as well, as an optional feature.
Just to reiterate, currently this behaviour that you have described should only happen in the default error serializer. If this is not desirable, you can set a custom one.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@suola
Comment options

Answer selected by suola
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants