Respect already set content-length
header for HEAD request.
#23484
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Currently when making a downstream request from Spring Cloud Gateway, the
content-length
HTTP header is being overwritten byorg.springframework.http.server.reactive.HttpHeadResponseDecorator
. Ideally this decorator should not kick in when the header was already set manually, or otherwise.Also see spring-cloud/spring-cloud-gateway#1210.
The text was updated successfully, but these errors were encountered: