Simplify check for Accept-Encoding header
Signed-off-by: dreis2211 <christoph.dreis@freenet.de>
This commit is contained in:
parent
597458df7c
commit
82e8fc0b0e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue