From: Nick Kew <niq@apache.org>
Date: Mon, 30 Jul 2007 12:30:36 +0000 (+0000)
Subject: Be liberal in what we accept.  Where it matters.
X-Git-Tag: 2.3.0~1676
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f2c15bdcec7d6decc411d38ef9f94434bee9e5d;p=apache

Be liberal in what we accept.  Where it matters.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@560941 13f79535-47bb-0310-9956-ffa450edef68
---

diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c
index f1e1a58e4c..ae372e41e8 100644
--- a/modules/filters/mod_deflate.c
+++ b/modules/filters/mod_deflate.c
@@ -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");
             }