httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yla...@apache.org
Subject svn commit: r1591390 - /httpd/httpd/trunk/modules/cache/mod_cache.c
Date Wed, 30 Apr 2014 16:34:15 GMT
Author: ylavic
Date: Wed Apr 30 16:34:15 2014
New Revision: 1591390

URL: http://svn.apache.org/r1591390
Log:
mod_cache: follow up to r1591322

Avoid one unnecessary test when checking 304 contradictions.

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=1591390&r1=1591389&r2=1591390&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_cache.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_cache.c Wed Apr 30 16:34:15 2014
@@ -1134,7 +1134,7 @@ static apr_status_t cache_save_filter(ap
          * as per RFC2616 Section 10.3.5
          */
         if (cache_header_cmp(r->pool, left, right, "ETag")) {
-            ehs = (ehs) ? apr_pstrcat(r->pool, ehs, ", ETag", NULL) : "ETag";
+            ehs = "ETag";
         }
         for (eh = MOD_CACHE_ENTITY_HEADERS; *eh && !reason; ++eh) {
             if (cache_header_cmp(r->pool, left, right, *eh)) {



Mime
View raw message