]> granicus.if.org Git - apache/commitdiff
Until we have a mechanism to allow PHP and others to 'raise their hand'
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 2 Oct 2002 21:32:01 +0000 (21:32 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 2 Oct 2002 21:32:01 +0000 (21:32 +0000)
  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

server/core.c

index 1ba7d71ad2e6b1e62d1f41a1eb71cdbe117f0d9d..1d49f656ae3caa24cef32b491d39516a61f318a0 100644 (file)
@@ -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,