commit | cc4078f47028d108a95616e3b7257ad8a6eef2b8 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Thu Oct 18 11:29:15 2007 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Thu Oct 18 11:29:15 2007 +0000 |
tree | 8d8e7e46a7d48b20dff5416b88aac5abca970f1a | |
parent | 31d6f9590a1628e6d7b34f1efe7341abbb93ae09 [diff] [blame] |
do not discard body if it has been already read
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index dfe5e0f..a9583c7 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c
@@ -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; }