Fixed a bug where HttpMessage.chunked flag is not cleared by HttpChunkAggregator

This commit is contained in:
Trustin Lee 2010-08-26 02:07:11 +00:00
parent d68c5160ed
commit 1c13d8c9f3

View File

@ -89,6 +89,7 @@ public class HttpChunkAggregator extends SimpleChannelUpstreamHandler {
if (encodings.isEmpty()) {
m.removeHeader(HttpHeaders.Names.TRANSFER_ENCODING);
}
m.setChunked(false);
m.setContent(ChannelBuffers.dynamicBuffer(e.getChannel().getConfig().getBufferFactory()));
this.currentMessage = m;
} else {