]> granicus.if.org Git - apache/commitdiff
Centralize hop-by-hop header handling in the main mod_cache code. This change is...
authorDirk-Willem van Gulik <dirkx@apache.org>
Thu, 17 Apr 2008 16:40:10 +0000 (16:40 +0000)
committerDirk-Willem van Gulik <dirkx@apache.org>
Thu, 17 Apr 2008 16:40:10 +0000 (16:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@649179 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/mod_cache.c

index a68b78933eed3bf16f61992edd2832c51726ca1b..9806d09db38c34f66e4eb6fb073b7fe6edccb77e 100644 (file)
@@ -759,7 +759,11 @@ static int cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in)
          */
         r->headers_out = apr_table_overlay(r->pool, r->headers_out,
                                            r->err_headers_out);
-        r->headers_out = ap_cache_cacheable_hdrs_out(r->pool, r->headers_out,
+
+       /* XXX check -- we're not patching up content-type - i.e. this
+         *     propably should be ap_cache_cacheable_headers_out().
+         */
+        r->headers_out = ap_cache_cacheable_headers(r->pool, r->headers_out,
                                                      r->server);
         apr_table_clear(r->err_headers_out);