mirror of
https://github.com/apache/httpd.git
synced 2025-08-20 16:09:55 +00:00
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
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user