You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2012/07/13 13:04:09 UTC
svn commit: r1361153 - /httpd/httpd/trunk/modules/cache/mod_cache.c
Author: rpluem
Date: Fri Jul 13 11:04:09 2012
New Revision: 1361153
URL: http://svn.apache.org/viewvc?rev=1361153&view=rev
Log:
* Set content type in case we return stale content.
Modified:
httpd/httpd/trunk/modules/cache/mod_cache.c
Modified: httpd/httpd/trunk/modules/cache/mod_cache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_cache.c?rev=1361153&r1=1361152&r2=1361153&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_cache.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_cache.c Fri Jul 13 11:04:09 2012
@@ -1686,6 +1686,9 @@ static void cache_insert_error_filter(re
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)