From: Matteo Nastasi (mop) Date: Wed, 20 Feb 2013 08:06:10 +0000 (+0100) Subject: move from a loop to read all the POST request to a single get to allow the server... X-Git-Tag: v0.1.1~1 X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=mod-proxy-fdpass.git;a=commitdiff_plain;h=bda74adb82f402ef88087d8bc9e2bcd3e6fb13b8 move from a loop to read all the POST request to a single get to allow the server to read all other post data --- diff --git a/mod_proxy_fdpass.c b/mod_proxy_fdpass.c index 90137e4..29b89db 100644 --- a/mod_proxy_fdpass.c +++ b/mod_proxy_fdpass.c @@ -286,8 +286,8 @@ int util_read(request_rec *r, const char **rbuf) int rsize, len_read, rpos=0; long length = r->remaining; *rbuf = (char *)apr_pcalloc(r->pool, length +1); - while ((len_read = ap_get_client_block(r, argsbuffer, -sizeof(argsbuffer))) > 0) { + if ((len_read = ap_get_client_block(r, argsbuffer, + sizeof(argsbuffer))) > 0) { if ((rpos + len_read) > length) { rsize = length - rpos; } else {