From: Christophe Jaillet Date: Mon, 4 Mar 2013 13:02:09 +0000 (+0000) Subject: cache_storage: remove useless test + update function name in debug log + skip as... X-Git-Tag: 2.5.0-alpha~5705 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=523996f1f656719571dc3f0ef664427fc8efbfac;p=apache cache_storage: remove useless test + update function name in debug log + skip as soon as we know headers do not match git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1452281 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/cache_storage.c b/modules/cache/cache_storage.c index e9363896bc..179c79e69c 100644 --- a/modules/cache/cache_storage.c +++ b/modules/cache/cache_storage.c @@ -263,7 +263,7 @@ int cache_select(cache_request_rec *cache, request_rec *r) /* isolate header name */ while (*vary && !apr_isspace(*vary) && (*vary != ',')) ++vary; - while (*vary && (apr_isspace(*vary) || (*vary == ','))) { + while (apr_isspace(*vary) || (*vary == ',')) { *vary = '\0'; ++vary; } @@ -283,8 +283,9 @@ int cache_select(cache_request_rec *cache, request_rec *r) else { /* headers do not match, so Vary failed */ ap_log_rerror(APLOG_MARK, APLOG_DEBUG, APR_SUCCESS, - r, APLOGNO(00694) "cache_select_url(): Vary header mismatch."); + r, APLOGNO(00694) "cache_select(): Vary header mismatch."); mismatch = 1; + break; } }