netty5/src
Trustin Lee d5264ebe85 Remove 'Content-Length' header from a chunked HTTP response
Related: #3076

Motivation:

When a user writes a chunked HTTP response with a Content-Length header,
the HttpContentEncoder should remove the Content-Length header because
the length of the encoded content is supposed to be different from the
original one.

Actually, HttpContentEncoder currently never touches the Content-Length
header when the response is chunked.

Modifications:

- Remove the Content-Length header when an HTTP response being encoded
  is chunked
- Add a test case

Result:

HttpContentEncoder sanitizes the Content-Length header properly.
2014-10-30 19:42:02 +09:00
..
assembly Upgrade to apiviz 1.3.2.GA. See #676 2012-10-23 13:20:02 +02:00
javadoc Update license headers 2012-06-04 13:35:22 -07:00
main Remove 'Content-Length' header from a chunked HTTP response 2014-10-30 19:42:02 +09:00
site More license updates 2011-12-09 14:31:04 +09:00
test Remove 'Content-Length' header from a chunked HTTP response 2014-10-30 19:42:02 +09:00