httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53539] content type and character set are changing when the content served from disk_cache becomes 'stale'
Date Thu, 12 Jul 2012 15:12:38 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53539

--- Comment #3 from Ruediger Pluem <rpluem@apache.org> ---
(In reply to comment #2)

You are correct. I looked in two different locations. The patch I mentioned is
already in 2.4.2. Can you please try the following one:

Index: modules/cache/mod_cache.c
===================================================================
--- modules/cache/mod_cache.c   (revision 1352429)
+++ modules/cache/mod_cache.c   (working copy)
@@ -1686,6 +1686,9 @@

             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)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message