From 9f3e0671fd57e64224cbbc0e4fe551983a82617c Mon Sep 17 00:00:00 2001 From: Rainer Jung Date: Fri, 2 Jan 2015 14:28:39 +0000 Subject: [PATCH] mod_proxy_ajp: Fix get_content_length(). clength in request_rec is for response sizes, not request body size. It is initialized to 0, so the "if" branch was never taken. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1649043 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy_ajp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/proxy/mod_proxy_ajp.c b/modules/proxy/mod_proxy_ajp.c index 416e92e4da..bdd0031379 100644 --- a/modules/proxy/mod_proxy_ajp.c +++ b/modules/proxy/mod_proxy_ajp.c @@ -123,10 +123,7 @@ static apr_off_t get_content_length(request_rec * r) { apr_off_t len = 0; - if (r->clength > 0) { - return r->clength; - } - else if (r->main == NULL) { + if (r->main == NULL) { const char *clp = apr_table_get(r->headers_in, "Content-Length"); if (clp) { -- 2.50.1