From: Edward Lu Date: Mon, 21 Sep 2015 19:19:54 +0000 (+0000) Subject: not sure how that got in there X-Git-Tag: 2.5.0-alpha~2818 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2a5a379fc31492976fb6f9eddbbe129be888326;p=thirdparty%2Fapache%2Fhttpd.git not sure how that got in there git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1704395 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/mod_cache.c b/modules/cache/mod_cache.c index eb70b48eaef..0ab6e3146bf 100644 --- a/modules/cache/mod_cache.c +++ b/modules/cache/mod_cache.c @@ -122,10 +122,12 @@ static int cache_quick_handler(request_rec *r, int lookup) return DECLINED; } - /* Since we're in the quick handler, authorization will not have been - * processed through normal channels yet. Just decline the request if - * it's trying to authorize. */ + /* find certain cache controlling headers */ auth = apr_table_get(r->headers_in, "Authorization"); + + /* First things first - does the request allow us to return + * cached information at all? If not, just decline the request. + */ if (auth) { return DECLINED; }