]> granicus.if.org Git - apache/commitdiff
Be compliant with RFC2616 14.46, revalidation failed is Warning 111, not
authorGraham Leggett <minfrin@apache.org>
Thu, 21 Oct 2010 23:00:09 +0000 (23:00 +0000)
committerGraham Leggett <minfrin@apache.org>
Thu, 21 Oct 2010 23:00:09 +0000 (23:00 +0000)
Warning 110.

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

modules/cache/mod_cache.c

index bc95a21a5683656fe05fb92b00c162f465dc3f7c..bbdec894e1565bb20a1c1c22e8efe81979cb155d 100644 (file)
@@ -808,12 +808,12 @@ static int cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in)
 
             r->headers_out = cache->stale_handle->resp_hdrs;
 
-            /* add a stale warning */
+            /* add a revalidation warning */
             warn_head = apr_table_get(r->err_headers_out, "Warning");
             if ((warn_head == NULL) || ((warn_head != NULL)
-                    && (ap_strstr_c(warn_head, "110") == NULL))) {
+                    && (ap_strstr_c(warn_head, "111") == NULL))) {
                 apr_table_mergen(r->err_headers_out, "Warning",
-                        "110 Response is stale");
+                        "111 Revalidation failed");
             }
 
             cache_run_cache_status(cache->handle, r, r->headers_out, AP_CACHE_HIT,
@@ -1621,12 +1621,12 @@ static void cache_insert_error_filter(request_rec *r)
 
             r->err_headers_out = cache->stale_handle->resp_hdrs;
 
-            /* add a stale warning */
+            /* add a revalidation warning */
             warn_head = apr_table_get(r->err_headers_out, "Warning");
             if ((warn_head == NULL) || ((warn_head != NULL)
-                    && (ap_strstr_c(warn_head, "110") == NULL))) {
+                    && (ap_strstr_c(warn_head, "111") == NULL))) {
                 apr_table_mergen(r->err_headers_out, "Warning",
-                        "110 Response is stale");
+                        "111 Revalidation failed");
             }
 
             cache_run_cache_status(