]> granicus.if.org Git - apache/commitdiff
don't let handlers start with r->status = 304 during a failed revalidation
authorEric Covener <covener@apache.org>
Fri, 22 Aug 2014 15:26:27 +0000 (15:26 +0000)
committerEric Covener <covener@apache.org>
Fri, 22 Aug 2014 15:26:27 +0000 (15:26 +0000)
PR56881

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1619835 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/cache/mod_cache.c

diff --git a/CHANGES b/CHANGES
index d1202da704df3639c33df9e58479f01e562c4a7e..404e80a2401eea4c8c2a268efe56c566ff895e2a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) mod_cache: Avoid sending 304 responses during failed revalidations
+     PR56881. [Eric Covener]
+
   *) core: Avoid useless warning message when parsing a section guarded by
      <IfDefine foo> if $(foo) is used within the section.
      PR 56858 [Christophe Jaillet]
index 93bb9f782892263b3976acf411626e0a39613999..819dd14ebc918cca8cee06795d7523e6d4ed74a3 100644 (file)
@@ -1203,6 +1203,8 @@ static apr_status_t cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in)
         apr_table_unset(r->headers_in, "If-Range");
         apr_table_unset(r->headers_in, "If-Unmodified-Since");
 
+        /* Currentlty HTTP_NOT_MODIFIED, and after the redirect, handlers won't think to set status to HTTP_OK */
+        r->status = HTTP_OK; 
         ap_internal_redirect(r->unparsed_uri, r);
 
         return APR_SUCCESS;