Mercurial > hg > nginx-quic
comparison 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 |
comparison
equal
deleted
inserted
replaced
1581:81774dc3db28 | 1582:227152b66458 |
---|---|
440 | 440 |
441 if (rev->timer_set) { | 441 if (rev->timer_set) { |
442 ngx_del_timer(rev); | 442 ngx_del_timer(rev); |
443 } | 443 } |
444 | 444 |
445 if (r->headers_in.content_length_n <= 0) { | 445 if (r->headers_in.content_length_n <= 0 || r->request_body) { |
446 return NGX_OK; | 446 return NGX_OK; |
447 } | 447 } |
448 | 448 |
449 size = r->header_in->last - r->header_in->pos; | 449 size = r->header_in->last - r->header_in->pos; |
450 | 450 |