mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-03 12:29:31 +00:00
Merge remote-tracking branch 'origin/jetty-9.3.x'
This commit is contained in:
commit
21e4cfecfc
@ -293,9 +293,7 @@ public class GzipHandler extends HandlerWrapper implements GzipFactory
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If not HTTP/2, then we must check the accept encoding header
|
// check the accept encoding header
|
||||||
if (request.getHttpVersion()!=HttpVersion.HTTP_2)
|
|
||||||
{
|
|
||||||
HttpField accept = request.getHttpFields().getField(HttpHeader.ACCEPT_ENCODING);
|
HttpField accept = request.getHttpFields().getField(HttpHeader.ACCEPT_ENCODING);
|
||||||
|
|
||||||
if (accept==null)
|
if (accept==null)
|
||||||
@ -310,7 +308,6 @@ public class GzipHandler extends HandlerWrapper implements GzipFactory
|
|||||||
LOG.debug("{} excluded not gzip accept {}",this,request);
|
LOG.debug("{} excluded not gzip accept {}",this,request);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Deflater df = _deflater.get();
|
Deflater df = _deflater.get();
|
||||||
if (df==null)
|
if (df==null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user