From 4358302ce0fdc5c85805a27e01b4ddeb29dfef5e Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Fri, 30 Aug 2013 14:45:21 +1000 Subject: [PATCH] 416102 - Clean up of async sendContent process --- .../src/main/java/org/eclipse/jetty/server/HttpOutput.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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