]> granicus.if.org Git - apache/commitdiff
Add an erroe message when handler not found. This may be bogus,
authorRoy T. Fielding <fielding@apache.org>
Thu, 26 Aug 1999 16:08:08 +0000 (16:08 +0000)
committerRoy T. Fielding <fielding@apache.org>
Thu, 26 Aug 1999 16:08:08 +0000 (16:08 +0000)
since a change similar to this in 1.3.x generated many PR complaints.

Submitted by: pthreads leftovers

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

modules/http/http_core.c

index 0e330028f16432747eea3cc212bb2e243eb9445b..b8abc7693f45590e35c8c1729bc1e1105d235549 100644 (file)
@@ -2478,13 +2478,18 @@ static int default_handler(request_rec *r)
     int convert_flag;
 #endif
 
+    if (r->handler) {
+        ap_log_error(APLOG_MARK, APLOG_NOERRNO | APLOG_WARNING,
+                    r->server, "handler \"%s\" not found, using default "
+                    "handler for : %s", r->handler, r->filename);
+    }
     /* This handler has no use for a request body (yet), but we still
      * need to read and discard it if the client sent one.
      */
     if ((errstatus = ap_discard_request_body(r)) != OK) {
         return errstatus;
     }
-
+    
     r->allowed |= (1 << M_GET) | (1 << M_OPTIONS);
 
     if (r->method_number == M_INVALID) {