From 888b1f4fe7548f22555e9945619f93bc47b5e3ed Mon Sep 17 00:00:00 2001 From: "Roy T. Fielding" Date: Fri, 27 Aug 1999 23:47:09 +0000 Subject: [PATCH] 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 --- server/config.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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; } -- 2.40.0