]> granicus.if.org Git - apache/commitdiff
Be liberal in what we accept. Where it matters.
authorNick Kew <niq@apache.org>
Mon, 30 Jul 2007 12:30:36 +0000 (12:30 +0000)
committerNick Kew <niq@apache.org>
Mon, 30 Jul 2007 12:30:36 +0000 (12:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@560941 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_deflate.c

index f1e1a58e4ce5bc50c9b54d0233058102945d0e3e..ae372e41e83b869988e0d36d9114c7e4c43ed111 100644 (file)
@@ -677,7 +677,8 @@ static apr_status_t deflate_in_filter(ap_filter_t *f,
         if (encoding && *encoding) {
 
             /* check the usual/simple case first */
-            if (!strcasecmp(encoding, "gzip")) {
+            if (!strcasecmp(encoding, "gzip")
+                || !strcasecmp(encoding, "x-gzip")) {
                 found = 1;
                 apr_table_unset(r->headers_in, "Content-Encoding");
             }