416102 - Clean up of async sendContent process

This commit is contained in:
Greg Wilkins 2013-08-30 14:45:21 +10:00
parent 79fb4287bb
commit 4358302ce0
1 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ public class HttpOutput extends ServletOutputStream
int len=0; int len=0;
while (len<_buffer.capacity() && !_eof) 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) if (r<0)
_eof=true; _eof=true;
else else