diff options
author | Edward Lu <elu@apache.org> | 2015-09-21 21:19:54 +0200 |
---|---|---|
committer | Edward Lu <elu@apache.org> | 2015-09-21 21:19:54 +0200 |
commit | b2a5a379fc31492976fb6f9eddbbe129be888326 (patch) | |
tree | 5a309ac6adc41a904ffa2f33775b0366b9623c48 /modules/cache | |
parent | Stop destroying headers when passing through the cache filter (diff) | |
download | apache2-b2a5a379fc31492976fb6f9eddbbe129be888326.tar.xz apache2-b2a5a379fc31492976fb6f9eddbbe129be888326.zip |
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
Diffstat (limited to 'modules/cache')
-rw-r--r-- | modules/cache/mod_cache.c | 8 |
1 files changed, 5 insertions, 3 deletions
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; } |