Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cache_storage: remove useless test + update function name in debug lo…

…g + 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
  • Loading branch information...
commit 55fc017b6206f9836736976c493d0bdb333b41d2 1 parent c395491
Christophe Jaillet authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 modules/cache/cache_storage.c
View
5 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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.