]> granicus.if.org Git - apache/commitdiff
mod_cache: follow up to r1591322
authorYann Ylavic <ylavic@apache.org>
Wed, 30 Apr 2014 16:34:15 +0000 (16:34 +0000)
committerYann Ylavic <ylavic@apache.org>
Wed, 30 Apr 2014 16:34:15 +0000 (16:34 +0000)
Avoid one unnecessary test when checking 304 contradictions.

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

modules/cache/mod_cache.c

index 74c559c727e697b77cc908a46e8f1df59e7fe348..042e0e042fc720496956371a90fbe19c9d5ff84c 100644 (file)
@@ -1134,7 +1134,7 @@ static apr_status_t cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in)
          * 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)) {