Issue #7567 - don't need to convert to lowercase with a AsciiLowerCaseSet
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
0aa307db64
commit
21ec2f072f
|
@ -30,7 +30,6 @@ import org.eclipse.jetty.server.Response;
|
||||||
import org.eclipse.jetty.util.BufferUtil;
|
import org.eclipse.jetty.util.BufferUtil;
|
||||||
import org.eclipse.jetty.util.Callback;
|
import org.eclipse.jetty.util.Callback;
|
||||||
import org.eclipse.jetty.util.IteratingNestedCallback;
|
import org.eclipse.jetty.util.IteratingNestedCallback;
|
||||||
import org.eclipse.jetty.util.StringUtil;
|
|
||||||
import org.eclipse.jetty.util.compression.DeflaterPool;
|
import org.eclipse.jetty.util.compression.DeflaterPool;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
@ -160,7 +159,7 @@ public class GzipHttpOutputInterceptor implements HttpOutput.Interceptor
|
||||||
if (ct != null)
|
if (ct != null)
|
||||||
{
|
{
|
||||||
String baseType = HttpField.valueParameters(ct, null);
|
String baseType = HttpField.valueParameters(ct, null);
|
||||||
if (!_factory.isMimeTypeGzipable(StringUtil.asciiToLowerCase(baseType)))
|
if (!_factory.isMimeTypeGzipable(baseType))
|
||||||
{
|
{
|
||||||
LOG.debug("{} exclude by mimeType {}", this, ct);
|
LOG.debug("{} exclude by mimeType {}", this, ct);
|
||||||
noCompression();
|
noCompression();
|
||||||
|
|
Loading…
Reference in New Issue