]> granicus.if.org Git - apache/commitdiff
mod_proxy_ajp: Fix get_content_length().
authorRainer Jung <rjung@apache.org>
Fri, 2 Jan 2015 14:28:39 +0000 (14:28 +0000)
committerRainer Jung <rjung@apache.org>
Fri, 2 Jan 2015 14:28:39 +0000 (14:28 +0000)
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

index 416e92e4da61c7382805784efdabf201f4a30430..bdd003137912b4b9e0085659424891c13ca9ab4e 100644 (file)
@@ -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) {