# HG changeset patch # User Igor Sysoev # Date 1192706955 0 # Node ID 227152b66458004da3a66d63173b0d657f8a3a97 # Parent 81774dc3db287015bed086a778cecf36680463e0 do not discard body if it has been already read diff -r 81774dc3db28 -r 227152b66458 src/http/ngx_http_request_body.c --- a/src/http/ngx_http_request_body.c Thu Oct 18 11:28:21 2007 +0000 +++ b/src/http/ngx_http_request_body.c Thu Oct 18 11:29:15 2007 +0000 @@ -442,7 +442,7 @@ ngx_del_timer(rev); } - if (r->headers_in.content_length_n <= 0) { + if (r->headers_in.content_length_n <= 0 || r->request_body) { return NGX_OK; }