From aa35cf17c2c42382edb40e1e69782ae3515afce8 Mon Sep 17 00:00:00 2001 From: Dirk-Willem van Gulik Date: Thu, 17 Apr 2008 16:40:10 +0000 Subject: [PATCH] Centralize hop-by-hop header handling in the main mod_cache code. This change is a no-op -- i.e. we call the same code path as prior to the API renaming. However this is propably wrong; and we should have been cleansing the content-types all along git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@649179 13f79535-47bb-0310-9956-ffa450edef68 --- modules/cache/mod_cache.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/cache/mod_cache.c b/modules/cache/mod_cache.c index a68b78933e..9806d09db3 100644 --- a/modules/cache/mod_cache.c +++ b/modules/cache/mod_cache.c @@ -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); -- 2.40.0