diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java index db48bdbdacf..bbea718ffa9 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java @@ -491,7 +491,7 @@ public class HttpOutput extends ServletOutputStream int len=0; while (len<_buffer.capacity() && !_eof) { - int r=_in.read(_buffer.array(),0,_buffer.capacity()-len); + int r=_in.read(_buffer.array(),_buffer.arrayOffset()+len,_buffer.capacity()-len); if (r<0) _eof=true; else