Mercurial > hg > nginx
diff src/http/ngx_http_request_body.c @ 1582:227152b66458
do not discard body if it has been already read
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 18 Oct 2007 11:29:15 +0000 |
parents | 698ea64f71e1 |
children | 02a22cd5282a |
line wrap: on
line diff
--- 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; }