[Remove entries to the current 2.0 section below, when backported]
+ *) mod_disk_cache: Correctly store cached content type. PR 30278.
+ [Rüdiger Plüm <r.pluem t-online.de>]
+
*) Fix a segfault in the LDAP cache purge. [Jess Holle <jessh ptc.com>]
*) mod_rewrite: Handle per-location rules when r->filename is unset.
headers_out = ap_cache_cacheable_hdrs_out(r->pool, r->headers_out);
+ if (!apr_table_get(headers_out, "Content-Type") &&
+ r->content_type) {
+ apr_table_setn(headers_out, "Content-Type",
+ ap_make_content_type(r, r->content_type));
+ }
+
rv = store_table(dobj->hfd, headers_out);
if (rv != APR_SUCCESS) {
return rv;
}
- /* This case only occurs when the content is generated locally */
- if (!apr_table_get(r->headers_out, "Content-Type") && r->content_type) {
- apr_table_setn(r->headers_out, "Content-Type",
- ap_make_content_type(r, r->content_type));
- }
}
/* Parse the vary header and dump those fields from the headers_in. */