Simplify check for Accept-Encoding header

Signed-off-by: dreis2211 <christoph.dreis@freenet.de>
This commit is contained in:
dreis2211 2019-09-09 07:06:40 +02:00
parent 597458df7c
commit 82e8fc0b0e
1 changed files with 0 additions and 6 deletions

View File

@ -458,12 +458,6 @@ public class GzipHandler extends HandlerWrapper implements GzipFactory
}
// check the accept encoding header
if (!httpFields.contains(HttpHeader.ACCEPT_ENCODING))
{
LOG.debug("{} excluded !accept {}", this, request);
return null;
}
if (!httpFields.contains(HttpHeader.ACCEPT_ENCODING, "gzip"))
{
LOG.debug("{} excluded not gzip accept {}", this, request);