]> git.kaiwu.me - nginx.git/commit
Request body: next upstream fix.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 14 Mar 2013 12:28:53 +0000 (12:28 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 14 Mar 2013 12:28:53 +0000 (12:28 +0000)
commit545cfd1fd391041706fab96d9835c4c82eda31d7
tree0c54896ae1a77ce3cfe77f3695e3638c0a121d5d
parent092355b2ccc3954346d9d02e5424c8c816b53d08
Request body: next upstream fix.

After introduction of chunked request body handling in 1.3.9 (r4931),
r->request_body->bufs buffers have b->start pointing to original buffer
start (and b->pos pointing to real data of this particular buffer).

While this is ok as per se, it caused bad things (usually original request
headers included before the request body) after reinit of the request
chain in ngx_http_upstream_reinit() while sending the request to a next
upstream server (which used to do b->pos = b->start for each buffer
in the request chain).

Patch by Piotr Sikora.
src/http/ngx_http_request_body.c