Skip to content

Customize Quarkus content negotiation #44370

Answered by gsmet
Treiblesschorle asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure I fully understand your problem because I would expect your clients to say that they support both application/json and application/problem+json with the latter having a lower priority.

With this in mind, I wouldn't expect any issue when negotiating the content type? Or does Quarkus checks the Content-Type also when pushing the Response? I would have expected that you could do whatever you want in the response.

If what I'm saying doesn't make any sense, maybe a small reproducer could help so that we could have a look at what's going on?

Replies: 1 comment 1 reply

Comment options

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

Answer selected by Treiblesschorle
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