Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Bartel2012-03-05 03:10:47 +0000
committerJan Bartel2012-03-05 03:10:47 +0000
commit0c4450dc5d48bbd1d915e4f4e8aa3094b1533639 (patch)
tree2d5994845f0322b806c0364a546e011ab25387b4
parentf434acd6ba1f59d8fa8554afbde481011e21e662 (diff)
downloadorg.eclipse.jetty.project-0c4450dc5d48bbd1d915e4f4e8aa3094b1533639.tar.gz
org.eclipse.jetty.project-0c4450dc5d48bbd1d915e4f4e8aa3094b1533639.tar.xz
org.eclipse.jetty.project-0c4450dc5d48bbd1d915e4f4e8aa3094b1533639.zip
JETTY-1409 GzipFilter will double-compress application/x-gzip content
-rw-r--r--jetty-http/src/main/java/org/eclipse/jetty/http/gzip/GzipResponseWrapper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/jetty-http/src/main/java/org/eclipse/jetty/http/gzip/GzipResponseWrapper.java b/jetty-http/src/main/java/org/eclipse/jetty/http/gzip/GzipResponseWrapper.java
index 12275fe910..093e127d90 100644
--- a/jetty-http/src/main/java/org/eclipse/jetty/http/gzip/GzipResponseWrapper.java
+++ b/jetty-http/src/main/java/org/eclipse/jetty/http/gzip/GzipResponseWrapper.java
@@ -106,7 +106,7 @@ public class GzipResponseWrapper extends HttpServletResponseWrapper
}
if ((_gzStream==null || _gzStream._out==null) &&
- (_mimeTypes==null && "application/gzip".equalsIgnoreCase(ct) ||
+ (_mimeTypes==null && ct!=null && ct.contains("gzip") ||
_mimeTypes!=null && (ct==null||!_mimeTypes.contains(StringUtil.asciiToLowerCase(ct)))))
{
noGzip();

Back to the top