diff options
author | Ruediger Pluem <rpluem@apache.org> | 2008-12-15 21:45:29 +0100 |
---|---|---|
committer | Ruediger Pluem <rpluem@apache.org> | 2008-12-15 21:45:29 +0100 |
commit | 8433cdfe676e513f8e7c377803a134ac68c70a7f (patch) | |
tree | f63def725d7c64fce0c897e90708bd169296313e /modules | |
parent | * Fix r->content_encoding for inflate_in and inflate_out filters. (diff) | |
download | apache2-8433cdfe676e513f8e7c377803a134ac68c70a7f.tar.xz apache2-8433cdfe676e513f8e7c377803a134ac68c70a7f.zip |
* Correctly save Content-Encoding of cachable entity.
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
Diffstat (limited to 'modules')
-rw-r--r-- | modules/cache/cache_util.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |