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

This commit is contained in:
Greg Wilkins 2016-04-07 11:41:29 +10:00
commit 21e4cfecfc

View File

@ -293,9 +293,7 @@ public class GzipHandler extends HandlerWrapper implements GzipFactory
return null;
}
// If not HTTP/2, then we must check the accept encoding header
if (request.getHttpVersion()!=HttpVersion.HTTP_2)
{
// check the accept encoding header
HttpField accept = request.getHttpFields().getField(HttpHeader.ACCEPT_ENCODING);
if (accept==null)
@ -310,7 +308,6 @@ public class GzipHandler extends HandlerWrapper implements GzipFactory
LOG.debug("{} excluded not gzip accept {}",this,request);
return null;
}
}
Deflater df = _deflater.get();
if (df==null)