From: William A. Rowe Jr Date: Wed, 2 Oct 2002 21:32:01 +0000 (+0000) Subject: Until we have a mechanism to allow PHP and others to 'raise their hand' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f439188f8cebed2fcadfc15604639056ea24ed80;p=apache Until we have a mechanism to allow PHP and others to 'raise their hand' and claim 'POST' we have to continue to accept POST in the default handler. Revert to rev 1.206 per Rbb's and wrowe's veto. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97063 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core.c b/server/core.c index 1ba7d71ad2..1d49f656ae 100644 --- a/server/core.c +++ b/server/core.c @@ -3259,14 +3259,6 @@ static int default_handler(request_rec *r) return HTTP_NOT_FOUND; } - /* we understood the POST method, but it isn't legal for this - particular resource. */ - if (r->method_number == M_POST) { - ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, - "This resource does not accept the POST method."); - return HTTP_METHOD_NOT_ALLOWED; - } - if ((status = apr_file_open(&fd, r->filename, APR_READ | APR_BINARY, 0, r->pool)) != APR_SUCCESS) { ap_log_rerror(APLOG_MARK, APLOG_ERR, status, r,