Changes with Apache 2.3.0
[ When backported to 2.2.x, remove entry from this file ]
+ *) ap_cache_cacheable_headers_out() will (now) always
+ merge an error heaeders _before_ clearing them and _before_
+ merging in the actual entity headers and doing normal
+ hop-by-hop cleansing. [Dirk-Willem van Gulik].
+
*) cache: retire ap_cache_cacheable_hdrs_out() which was used
for both in- and out-put headers; and replace it by a single
ap_cache_cacheable_headers() wrapped in a in- and out-put
{
apr_table_t *headers_out;
+ headers_out = apr_table_overlay(r->pool, headers_out,
+ r->err_headers_out);
+
+ apr_table_clear(r->err_headers_out);
+
headers_out = ap_cache_cacheable_headers(r->pool, r->headers_out,
r->server);
ap_make_content_type(r, r->content_type));
}
- headers_out = apr_table_overlay(r->pool, headers_out,
- r->err_headers_out);
-
return headers_out;
}
* err_headers_out and we also need to strip any hop-by-hop
* headers that might have snuck in.
*/
- r->headers_out = apr_table_overlay(r->pool, r->headers_out,
- r->err_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);
+ r->headers_out = ap_cache_cacheable_headers_out(r);
/* Merge in our cached headers. However, keep any updated values. */
ap_cache_accept_headers(cache->handle, r, 1);