Skip to content

Commit

Permalink
Issue #7567 - don't need to convert to lowercase with a AsciiLowerCas…
Browse files Browse the repository at this point in the history
…eSet

Signed-off-by: Lachlan Roberts <[email protected]>
  • Loading branch information
lachlan-roberts authored and joakime committed Feb 24, 2022
1 parent aad7845 commit 2a28b8e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
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;
Expand Down Expand Up @@ -160,7 +159,7 @@ protected void commit(ByteBuffer content, boolean complete, Callback callback)
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();
Expand Down

0 comments on commit 2a28b8e

Please sign in to comment.