spring-framework/spring-web
Brian Clozel 4afac17e58 Reject invalid forwarded requests in ForwardedHeaderFilter
Prior to this commit, the `ForwardedHeaderFilter` and the forwarded
header utils would throw `IllegalArgumentException` and
`IllegalStateException` when request headers are invalid and cannot be
parsed for Forwarded handling.

This commit aligns the behavior with the WebFlux counterpart by
rejecting such requests with HTTP 400 responses directly.

Fixes gh-31842
2023-12-22 17:27:06 +01:00
..
src Reject invalid forwarded requests in ForwardedHeaderFilter 2023-12-22 17:27:06 +01:00
spring-web.gradle Fix ordering of releasing resources in JSON Encoder 2023-11-22 18:21:06 +01:00