]> granicus.if.org Git - apache/commitdiff
* Set content type in case we return stale content.
authorRuediger Pluem <rpluem@apache.org>
Fri, 13 Jul 2012 11:04:09 +0000 (11:04 +0000)
committerRuediger Pluem <rpluem@apache.org>
Fri, 13 Jul 2012 11:04:09 +0000 (11:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1361153 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/mod_cache.c

index dbeafa67d8282a1c51976201c90af8b444806b97..d402fb576d41c609581e276b9c9f8761d7e51b17 100644 (file)
@@ -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)