From b6761758824bb618b6354dba89e068b6c821bf5f Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Wed, 4 Mar 2009 13:45:40 +0000 Subject: [PATCH] Actually it was being taken care of.. reverted back --- .../jboss/netty/handler/codec/http/HttpMessageEncoder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/netty/handler/codec/http/HttpMessageEncoder.java b/src/main/java/org/jboss/netty/handler/codec/http/HttpMessageEncoder.java index 5f5b992c25..4cd002e8cc 100644 --- a/src/main/java/org/jboss/netty/handler/codec/http/HttpMessageEncoder.java +++ b/src/main/java/org/jboss/netty/handler/codec/http/HttpMessageEncoder.java @@ -63,7 +63,9 @@ public abstract class HttpMessageEncoder extends OneToOneEncoder { } else { return wrappedBuffer(header, content); } - } else if (msg instanceof HttpChunk) { + } + + if (msg instanceof HttpChunk) { HttpChunk chunk = (HttpChunk) msg; if (chunk.isLast()) { return LAST_CHUNK.duplicate();