diff --git a/src/main/java/org/jboss/netty/handler/stream/ChunkedStream.java b/src/main/java/org/jboss/netty/handler/stream/ChunkedStream.java index 420babacc1..0e6cdde4ed 100644 --- a/src/main/java/org/jboss/netty/handler/stream/ChunkedStream.java +++ b/src/main/java/org/jboss/netty/handler/stream/ChunkedStream.java @@ -94,9 +94,9 @@ public class ChunkedStream implements ChunkedInput { break; } readBytes += localReadBytes; + offset += readBytes; } - offset += readBytes; return wrappedBuffer(chunk, 0, readBytes); } }