]> git.kaiwu.me - nginx.git/commit
Correctly set body if it's preread and there are extra data.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 18 Aug 2011 15:27:57 +0000 (15:27 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 18 Aug 2011 15:27:57 +0000 (15:27 +0000)
commitf48b45119557790fc26f7d4b3d081ea6f27c9301
tree9c88cdabad203369f9f01fcdeff0d9d8116d7c0d
parent950b668076393b11301bf9f88d03f677ba1b8761
Correctly set body if it's preread and there are extra data.

Previously all available data was used as body, resulting in garbage after
real body e.g. in case of pipelined requests.  Make sure to use only as many
bytes as request's Content-Length specifies.
src/http/ngx_http_request_body.c