httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r1361153 - /httpd/httpd/trunk/modules/cache/mod_cache.c
Date Fri, 13 Jul 2012 11:04:09 GMT
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)



Mime
View raw message