[#494] Automatically adding chunked encoding header breaks streaming

Add a missing statement dropped while forwardporting
This commit is contained in:
Trustin Lee 2012-08-17 11:34:35 +09:00
parent e530ccaeb8
commit 00d6010916

View File

@ -70,6 +70,7 @@ public abstract class HttpMessageEncoder extends MessageToByteEncoder<Object> {
if (HttpCodecUtil.isContentLengthSet(m)) {
contentMustBeEmpty = false;
transferEncodingChunked = false;
HttpCodecUtil.removeTransferEncodingChunked(m);
} else {
// check if the Transfer-Encoding is set to chunked already.
// if not add the header to the message