From 8433cdfe676e513f8e7c377803a134ac68c70a7f Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Mon, 15 Dec 2008 20:45:29 +0000 Subject: * Correctly save Content-Encoding of cachable entity. PR: 46401 Submitted by: Dan Poirier Reviewed by: rpluem git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@726796 13f79535-47bb-0310-9956-ffa450edef68 --- modules/cache/cache_util.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules') diff --git a/modules/cache/cache_util.c b/modules/cache/cache_util.c index 1fe7d0f5bd..bc8dbd8f51 100644 --- a/modules/cache/cache_util.c +++ b/modules/cache/cache_util.c @@ -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; } -- cgit v1.2.3