]> git.kaiwu.me - nginx.git/commit
Upstream: disable body cleanup with preserve_output (ticket #1565).
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 13 Jun 2018 12:28:11 +0000 (15:28 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 13 Jun 2018 12:28:11 +0000 (15:28 +0300)
commit9b6bc8a5787d270a54a3465a23eef22cee870e37
tree79061eef6e2adfb7726bda59e5bf2c636549dcfb
parentfb3a9e28b233f3c2823487378622e7cf4284857a
Upstream: disable body cleanup with preserve_output (ticket #1565).

With u->conf->preserve_output set the request body file might be used
after the response header is sent, so avoid cleaning it.  (Normally
this is not a problem as u->conf->preserve_output is only set with
r->request_body_no_buffering, but the request body might be already
written to a file in a different context.)
src/http/ngx_http_upstream.c