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:
Lachlan Roberts 2022-02-14 12:23:55 +11:00
parent 0aa307db64
commit 21ec2f072f
1 changed files with 1 additions and 2 deletions

View File

@ -30,7 +30,6 @@ import org.eclipse.jetty.server.Response;
import org.eclipse.jetty.util.BufferUtil;
import org.eclipse.jetty.util.Callback;
import org.eclipse.jetty.util.IteratingNestedCallback;
import org.eclipse.jetty.util.StringUtil;
import org.eclipse.jetty.util.compression.DeflaterPool;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -160,7 +159,7 @@ public class GzipHttpOutputInterceptor implements HttpOutput.Interceptor
if (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);
noCompression();