Fixed a bug where trailing headers are not written

This commit is contained in:
Trustin Lee 2009-11-17 07:22:06 +00:00
parent 40597002e9
commit cfd3421234

View File

@ -81,7 +81,7 @@ public abstract class HttpMessageEncoder extends OneToOneEncoder {
if (msg instanceof HttpChunk) {
HttpChunk chunk = (HttpChunk) msg;
if (chunk.isLast()) {
if (chunk == HttpChunk.LAST_CHUNK) {
return LAST_CHUNK.duplicate();
} else {
ChannelBuffer content = chunk.getContent();