spring-framework/spring-web/src/test/java/org/springframework
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
..
core/task Update Apache license headers for affected sources 2012-12-28 23:09:31 +01:00
http Introduce JSON streaming support 2017-02-06 18:14:53 +01:00
mock Support for Servlet 4.0 (PushBuilder argument, MockServletContext) 2017-02-13 15:06:59 +01:00
protobuf Polishing 2016-07-26 17:15:19 +02:00
remoting Framework build compatible with JDK 9 (tests running against java.base module) 2016-07-19 19:37:34 +02:00
web Avoid duplicate Content-Length headers in Netty client 2017-02-13 21:07:35 +01:00