]> granicus.if.org Git - apache/commitdiff
Editors choice on CHANGES
authorJim Jagielski <jim@apache.org>
Tue, 14 Aug 2012 21:14:34 +0000 (21:14 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 14 Aug 2012 21:14:34 +0000 (21:14 +0000)
Merge r1361153 from trunk:

* Set content type in case we return stale content.
Submitted by: rpluem
Reviewed/backported by: jim

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1373115 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
STATUS
modules/cache/mod_cache.c

diff --git a/CHANGES b/CHANGES
index 5e6ab618ebda99e8ab5b51b209a3b6310a15d874..c134559f53ad7596fdc8169d2c8a55a3fdd0c6fb 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -7,6 +7,9 @@ Changes with Apache 2.4.3
      possible XSS for a site where untrusted users can upload files to
      a location with MultiViews enabled. [Niels Heinen <heinenn google.com>]
 
+  *) mod_cache: Set content type in case we return stale content.
+     [Ruediger Pluem]
+
   *) Windows: Fix SSL failures on windows with AcceptFilter https none.
      PR: 52476.  [Jeff Trawick]
 
diff --git a/STATUS b/STATUS
index 21a0044a77f937fd747e34d1972535b57d348069..5a47375e45d95f1baa328fa910635511c349eebd 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -88,11 +88,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-   * mod_cache: Set content type in case we return stale content.
-     trunk patch: http://svn.apache.org/viewvc?view=rev&rev=1361153
-     2.4.x patch: trunk patch works
-     +1: rjung, humbedooh, trawick (needs CHANGES entry)
-     -0: What should CHANGES say???
 
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
index 720d81a55866b844b3967ada38502b87dd301a06..e75f01d34bf89ec3f50eabb5a1aa9d69a300e438 100644 (file)
@@ -1655,6 +1655,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)