You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2014/04/30 18:34:15 UTC

svn commit: r1591390 - /httpd/httpd/trunk/modules/cache/mod_cache.c

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)) {