From: Roy T. Fielding Date: Thu, 26 Aug 1999 16:08:08 +0000 (+0000) Subject: Add an erroe message when handler not found. This may be bogus, X-Git-Tag: PRE_APR_CHANGES~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75496e7d9ff850dff23d93aee3ec450d80777fa2;p=apache Add an erroe message when handler not found. This may be bogus, 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 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 0e330028f1..b8abc7693f 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -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) {