spring-framework/spring-web/src
Brian Clozel 4ff17676d3 Avoid duplicate Content-Length headers in Netty client
This commit checks that a "Content-Length" request header isn't already
present before adding one in `Netty4ClientHttpRequestFactory`.
`HttpMessageConverter` implementations can write that request header so
the Netty request factory should only write that value when the header
is missing.

If that header is not written (and since we're not dealing with
the HTTP exchange in a chunked-based fashion), the HTTP client might not
send the request body at all.

Issue: SPR-15241
2017-02-13 21:07:35 +01:00
..
main Avoid duplicate Content-Length headers in Netty client 2017-02-13 21:07:35 +01:00
test Avoid duplicate Content-Length headers in Netty client 2017-02-13 21:07:35 +01:00