-
Notifications
You must be signed in to change notification settings - Fork 37.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fall back on */* during content negotiation for errors
Prior to this commit, gh-31936 enabled content negotiation for `@ExceptionHandler` annotated methods in Spring MVC and WebFlux. In the case of WebFlux, HTTP clients sending invalid media types in the "Accept" request header would fail with a `NotAcceptableStatusException` This exception would be handled with an HTTP 406 response status, instead of processing the original exception. This commit ensures that invalid media types are ignored during the exception handling phase and that we fall back to "*/*". Fixes gh-32878
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters