do not discard body if it has been already read

This commit is contained in:
Igor Sysoev 2007-10-18 11:29:15 +00:00
parent 31d6f9590a
commit cc4078f470

View File

@ -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;
}