mirror of
https://github.com/apache/httpd.git
synced 2025-08-13 14:40:20 +00:00
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
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user