]> granicus.if.org Git - apache/commitdiff
Move "handler not found" warning message to below the check
authorRoy T. Fielding <fielding@apache.org>
Fri, 27 Aug 1999 23:47:09 +0000 (23:47 +0000)
committerRoy T. Fielding <fielding@apache.org>
Fri, 27 Aug 1999 23:47:09 +0000 (23:47 +0000)
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 <dirkm@teleport.com>, Roy Fielding

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83825 13f79535-47bb-0310-9956-ffa450edef68

server/config.c

index 30152b99b02bdc6415536465cd59a95c048183df..823d34fc2fe4d851778e100215a87f156d4d8b21 100644 (file)
@@ -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;
 }