From: Roy T. Fielding Date: Fri, 27 Aug 1999 23:47:09 +0000 (+0000) Subject: Move "handler not found" warning message to below the check X-Git-Tag: 1.3.10~361 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=888b1f4fe7548f22555e9945619f93bc47b5e3ed;p=apache Move "handler not found" warning message to below the check for a wildcard handler. Gee, you'd think someone would have fixed it before seven PRs. PR: 2584, 3349, 3436, 3548, 4384, 4795, 4807 Submitted by: Dirk , Roy Fielding git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83825 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/config.c b/server/config.c index 30152b99b0..823d34fc2f 100644 --- a/server/config.c +++ b/server/config.c @@ -338,11 +338,6 @@ int ap_invoke_handler(request_rec *r) } } - if (result == HTTP_INTERNAL_SERVER_ERROR && r->handler) { - ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_WARNING, r, - "handler \"%s\" not found for: %s", r->handler, r->filename); - } - /* Pass two --- wildcard matches */ for (handp = wildhandlers; handp->hr.content_type; ++handp) { @@ -355,6 +350,10 @@ int ap_invoke_handler(request_rec *r) } } + if (result == HTTP_INTERNAL_SERVER_ERROR && r->handler && r->filename) { + ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_WARNING, r, + "handler \"%s\" not found for: %s", r->handler, r->filename); + } return HTTP_INTERNAL_SERVER_ERROR; }