]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* Fix r->content_encoding in deflate_out_filter if it was set before.
authorRuediger Pluem <rpluem@apache.org>
Mon, 15 Dec 2008 20:22:07 +0000 (20:22 +0000)
committerRuediger Pluem <rpluem@apache.org>
Mon, 15 Dec 2008 20:22:07 +0000 (20:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@726791 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_deflate.c

index de1a57d78a30bdc876de8e43f472bf7905c95651..809efd86cfe4cb39d3ebdaee9748c47d517fa60e 100644 (file)
@@ -584,6 +584,11 @@ static apr_status_t deflate_out_filter(ap_filter_t *f,
         else {
             apr_table_mergen(r->headers_out, "Content-Encoding", "gzip");
         }
+        /* Fix r->content_encoding if it was set before */
+        if (r->content_encoding) {
+            r->content_encoding = apr_table_get(r->headers_out,
+                                                "Content-Encoding");
+        }
         apr_table_unset(r->headers_out, "Content-Length");
         apr_table_unset(r->headers_out, "Content-MD5");
         deflate_check_etag(r, "gzip");