From: Ruediger Pluem Date: Fri, 13 Jul 2012 11:04:09 +0000 (+0000) Subject: * Set content type in case we return stale content. X-Git-Tag: 2.5.0-alpha~6658 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=423370980e87743f03a354a09048e6c53f51db16;p=thirdparty%2Fapache%2Fhttpd.git * Set content type in case we return stale content. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1361153 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/mod_cache.c b/modules/cache/mod_cache.c index dbeafa67d82..d402fb576d4 100644 --- a/modules/cache/mod_cache.c +++ b/modules/cache/mod_cache.c @@ -1686,6 +1686,9 @@ static void cache_insert_error_filter(request_rec *r) r->err_headers_out = cache->stale_handle->resp_hdrs; + ap_set_content_type(r, apr_table_get( + cache->stale_handle->resp_hdrs, "Content-Type")); + /* add a revalidation warning */ warn_head = apr_table_get(r->err_headers_out, "Warning"); if ((warn_head == NULL) || ((warn_head != NULL)