mirror of
https://github.com/nginx/nginx.git
synced 2025-01-24 07:06:35 -06:00
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
This commit is contained in:
parent
f48b451195
commit
b09ceca261
@ -372,7 +372,9 @@ ngx_http_do_read_client_request_body(ngx_http_request_t *r)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (r->request_body_in_file_only && rb->bufs->next) {
|
if (rb->bufs->next
|
||||||
|
&& (r->request_body_in_file_only || r->request_body_in_single_buf))
|
||||||
|
{
|
||||||
rb->bufs = rb->bufs->next;
|
rb->bufs = rb->bufs->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user