Merge remote-tracking branch 'origin/jetty-9.2.x'

Conflicts:
	jetty-server/src/main/java/org/eclipse/jetty/server/handler/gzip/GzipHttpOutputInterceptor.java
This commit is contained in:
Greg Wilkins 2015-05-22 10:50:33 +10:00
commit 4028df12ca
1 changed files with 5 additions and 3 deletions

View File

@ -348,9 +348,11 @@ public class GzipHttpOutputInterceptor implements HttpOutput.Interceptor
BufferUtil.compact(_buffer);
int off=_buffer.arrayOffset()+_buffer.limit();
int len=_buffer.capacity()-_buffer.limit() - (_last?8:0);
if (len>0)
{
int produced=_deflater.deflate(_buffer.array(),off,len,Deflater.NO_FLUSH);
_buffer.limit(_buffer.limit()+produced);
}
boolean finished=_deflater.finished();
if (finished)