diff --git a/src/main/java/org/jboss/netty/handler/codec/http/HttpContentDecoder.java b/src/main/java/org/jboss/netty/handler/codec/http/HttpContentDecoder.java index 8944dfed37..65ef510cd2 100644 --- a/src/main/java/org/jboss/netty/handler/codec/http/HttpContentDecoder.java +++ b/src/main/java/org/jboss/netty/handler/codec/http/HttpContentDecoder.java @@ -108,10 +108,8 @@ public abstract class HttpContentDecoder extends SimpleChannelUpstreamHandler { if (!c.isLast()) { content = decode(content); if (content.readable()) { - // Note that HttpChunk is immutable unlike HttpMessage. - // XXX API inconsistency? I can live with it though. - Channels.fireMessageReceived( - ctx, new DefaultHttpChunk(content), e.getRemoteAddress()); + c.setContent(content); + ctx.sendUpstream(e); } } else { ChannelBuffer lastProduct = finishDecode();