comparison src/http/ngx_http_request_body.c @ 4006:87f47e05fc82

Fix body with request_body_in_single_buf. If there were preread data and request body was big enough first part of the request body was duplicated. See report here: http://mailman.nginx.org/pipermail/nginx/2011-July/027756.html
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 18 Aug 2011 15:52:00 +0000
parents e56c1e9873cb
children cf334deeea66
comparison
equal deleted inserted replaced
4005:e56c1e9873cb 4006:87f47e05fc82
370 } else { 370 } else {
371 rb->bufs->buf = b; 371 rb->bufs->buf = b;
372 } 372 }
373 } 373 }
374 374
375 if (r->request_body_in_file_only && rb->bufs->next) { 375 if (rb->bufs->next
376 && (r->request_body_in_file_only || r->request_body_in_single_buf))
377 {
376 rb->bufs = rb->bufs->next; 378 rb->bufs = rb->bufs->next;
377 } 379 }
378 380
379 rb->post_handler(r); 381 rb->post_handler(r);
380 382