From 7d473bfd8f27c762f2125d91b0055f29c520b17f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Kalu=C5=BEa?= Date: Wed, 22 Jan 2014 07:40:28 +0000 Subject: [PATCH] mod_proxy_ajp: remove AJP_EBAD_METHOD, it is not used since r1435178 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1560269 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/ajp.h | 2 -- modules/proxy/mod_proxy_ajp.c | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/proxy/ajp.h b/modules/proxy/ajp.h index 814ab0a275..d2d681d662 100644 --- a/modules/proxy/ajp.h +++ b/modules/proxy/ajp.h @@ -100,8 +100,6 @@ #define AJP_EBAD_MESSAGE (APR_OS_START_USERERR + 8) /** Cant log via AJP14 */ #define AJP_ELOGFAIL (APR_OS_START_USERERR + 9) -/** Bad request method */ -#define AJP_EBAD_METHOD (APR_OS_START_USERERR + 10) /** A structure that represents ajp message */ diff --git a/modules/proxy/mod_proxy_ajp.c b/modules/proxy/mod_proxy_ajp.c index 02169c42e3..29c7b6a939 100644 --- a/modules/proxy/mod_proxy_ajp.c +++ b/modules/proxy/mod_proxy_ajp.c @@ -219,9 +219,7 @@ static int ap_proxy_ajp_request(apr_pool_t *p, request_rec *r, conn->worker->s->hostname); if (status == AJP_EOVERFLOW) return HTTP_BAD_REQUEST; - else if (status == AJP_EBAD_METHOD) { - return HTTP_NOT_IMPLEMENTED; - } else { + 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 -- 2.40.0