Took care of the case where a message implements both HttpMessage and HttpChunk

This commit is contained in:
Trustin Lee 2009-03-04 13:44:58 +00:00
parent 35ac9ef38e
commit 0847720e41

View File

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