From: Eric Covener Date: Wed, 26 Jun 2013 02:32:39 +0000 (+0000) Subject: recognize the "defualt handler name" in r->handler, which is used when X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95be18d4189dc3aef89f73908c5b1a17c29aa3b1;p=thirdparty%2Fapache%2Fhttpd.git recognize the "defualt handler name" in r->handler, which is used when no SetHandler/AddHandler and no matching mimetype during type_checker. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1496711 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index cba349ebace..38b7c256337 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.0 + *) mod_file_cache: mod_file_cache should be able to serve files that + haven't had a Content-Type set via e.g. mod_mime. [Eric Covener] + *) core: Support the SINGLE_LISTEN_UNSERIALIZED_ACCEPT optimization on Linux kernel versions 3.x and above. PR 55121. [Bradley Heilbrun ] diff --git a/modules/cache/mod_file_cache.c b/modules/cache/mod_file_cache.c index 8ab3abe54b8..d77b8d28a5c 100644 --- a/modules/cache/mod_file_cache.c +++ b/modules/cache/mod_file_cache.c @@ -312,10 +312,10 @@ static int file_cache_handler(request_rec *r) int errstatus; int rc = OK; - /* XXX: not sure if this is right yet - * see comment in http_core.c:default_handler - */ - if (ap_strcmp_match(r->handler, "*/*")) { + /* Bail out if r->handler isn't the default value, and doesn't look like a Content-Type + * XXX: Even though we made the user explicitly list each path to cache? + */ + if (ap_strcmp_match(r->handler, "*/*") && !AP_IS_DEFAULT_HANDLER_NAME(r->handler)) { return DECLINED; }