-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content Type from Error handler should be respected #382
Conversation
This change will apply the first non-json content type to a response from a route match. This means that Error handlers will respect any @provides annotation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like a hack but ok
I believe a lot of this machinery has gone away for 4.0.x, and I couldn't find a better way of doing it 🫣 Let me check master for the TCK test for Error and see if I'm right... |
So yes, in the master branch (once the TCK is merged), we get the correct response type But a different error of |
@yawkat Hopefully found a less hacky way |
SonarCloud Quality Gate failed. |
This change will apply the first non-json content type to a response from a route match.
This means that Error handlers will respect any @provides annotation
Closes #376