]> granicus.if.org Git - apache/commitdiff
* Correctly save Content-Encoding of cachable entity.
authorRuediger Pluem <rpluem@apache.org>
Mon, 15 Dec 2008 20:45:29 +0000 (20:45 +0000)
committerRuediger Pluem <rpluem@apache.org>
Mon, 15 Dec 2008 20:45:29 +0000 (20:45 +0000)
PR: 46401
Submitted by: Dan Poirier <poirier pobox.com>
Reviewed by: rpluem

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

CHANGES
modules/cache/cache_util.c

diff --git a/CHANGES b/CHANGES
index 557281f2ae2736b6a48aa594e7f5983f0f15aa26..f2c1a96f5badb97235075e6964a7a0eb1788891e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@
 Changes with Apache 2.3.1
 [ When backported to 2.2.x, remove entry from this file ]
 
+  *) mod_cache: Correctly save Content-Encoding of cachable entity. PR 46401
+     [Dan Poirier <poirier pobox.com>]
+
   *) mod_cgid: Do not add an empty argument when calling the CGI script.
      PR 46380 [Ruediger Pluem]
 
index 1fe7d0f5bd7bb9709d5eac9d4af71cfbdb2d95da..bc8dbd8f514e415f12090bebbeb34f14393be2d9 100644 (file)
@@ -668,5 +668,11 @@ CACHE_DECLARE(apr_table_t *)ap_cache_cacheable_headers_out(request_rec *r)
                        ap_make_content_type(r, r->content_type));
     }
 
+    if (!apr_table_get(headers_out, "Content-Encoding")
+        && r->content_encoding) {
+        apr_table_setn(headers_out, "Content-Encoding",
+                       r->content_encoding);
+    }
+
     return headers_out;
 }