diff options
author | Igor Sysoev <igor@sysoev.ru> | 2007-10-18 11:29:15 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2007-10-18 11:29:15 +0000 |
commit | cc4078f47028d108a95616e3b7257ad8a6eef2b8 (patch) | |
tree | 8d8e7e46a7d48b20dff5416b88aac5abca970f1a /src | |
parent | 31d6f9590a1628e6d7b34f1efe7341abbb93ae09 (diff) | |
download | nginx-cc4078f47028d108a95616e3b7257ad8a6eef2b8.tar.gz nginx-cc4078f47028d108a95616e3b7257ad8a6eef2b8.zip |
do not discard body if it has been already read
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_request_body.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index dfe5e0fe1..a9583c706 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -442,7 +442,7 @@ ngx_http_discard_request_body(ngx_http_request_t *r) 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; } |