]> granicus.if.org Git - apache/commitdiff
Use HTTP_NOT_IMPLEMENTED instead of HTTP_BAD_REQUEST.
authorJean-Frederic Clere <jfclere@apache.org>
Thu, 8 Sep 2011 12:41:30 +0000 (12:41 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Thu, 8 Sep 2011 12:41:30 +0000 (12:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1166657 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_ajp.c

index 2d4661d4c53f5869b402a1cdddea56c40f3d4782..c92cea58339bfc0819ebbbe85c03b4e5e07d8480 100644 (file)
@@ -214,9 +214,11 @@ static int ap_proxy_ajp_request(apr_pool_t *p, request_rec *r,
                      "proxy: AJP: request failed to %pI (%s)",
                      conn->worker->cp->addr,
                      conn->worker->s->hostname);
-        if (status == AJP_EOVERFLOW || status == AJP_EBAD_METHOD)
+        if (status == AJP_EOVERFLOW)
             return HTTP_BAD_REQUEST;
-        else {
+        else if  (status == AJP_EBAD_METHOD) {
+            return HTTP_NOT_IMPLEMENTED;
+        } else {
             /*
              * This is only non fatal when the method is idempotent. In this
              * case we can dare to retry it with a different worker if we are