From b2a5a379fc31492976fb6f9eddbbe129be888326 Mon Sep 17 00:00:00 2001 From: Edward Lu Date: Mon, 21 Sep 2015 19:19:54 +0000 Subject: 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 --- modules/cache/mod_cache.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules/cache/mod_cache.c') diff --git a/modules/cache/mod_cache.c b/modules/cache/mod_cache.c index eb70b48eae..0ab6e3146b 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; } -- cgit v1.2.3