httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1026173 - /httpd/httpd/trunk/modules/cache/mod_cache.c
Date Thu, 21 Oct 2010 23:00:09 GMT
Author: minfrin
Date: Thu Oct 21 23:00:09 2010
New Revision: 1026173

URL: http://svn.apache.org/viewvc?rev=1026173&view=rev
Log:
Be compliant with RFC2616 14.46, revalidation failed is Warning 111, not
Warning 110.

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=1026173&r1=1026172&r2=1026173&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_cache.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_cache.c Thu Oct 21 23:00:09 2010
@@ -808,12 +808,12 @@ static int cache_save_filter(ap_filter_t
 
             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(re
 
             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(



Mime
View raw message