text/plain for all cached remote responses.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95319
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.38
+ *) Fix problem where mod_cache/mod_disk_cache was incorrectly
+ stripping the content_type from cached responses.
+ [Bill Stoddard]
*) apachectl passes through any httpd options. Note: apachectl
should be used in preference to httpd since it ensures that any
return rv;
}
- ap_set_content_type(r, apr_pstrdup(r->pool, info->content_type));
r->filename = apr_pstrdup(r->pool, info->filename );
return APR_SUCCESS;
rc = unserialize_table( mobj->notes,
mobj->num_notes,
r->notes);
+
+ /* Content-Type: header may not be set if content is local since
+ * CACHE_IN runs before header filters....
+ */
+ ap_set_content_type(r, apr_pstrdup(r->pool, h->cache_obj->info.content_type));
+
return rc;
}