spring-framework/spring-webflux
Brian Clozel f9c1565f4e Remove Content-* response headers for error handling
Prior to this commit, when WebFlux handlers added `"Content-*"` response
headers and an error happened while handling the request, all those
headers would not be cleared from the response before error handling.

This commit clears those headers from the response in two places:
* when invoking the handler and adapting the response
* when writing the response body

Not removing those headers might break HTTP clients since they're given
wrong information about how to interpret the HTTP response body: the
error response body might be very different from the original one.

Fixes gh-24238
2020-01-06 16:55:08 +01:00
..
src Remove Content-* response headers for error handling 2020-01-06 16:55:08 +01:00
spring-webflux.gradle Move JavaUtilLoggingConfigurer to spring-core test fixtures 2020-01-03 14:34:29 +01:00