]> 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)
commit4050b961af7217e115964443cb7500bf7e02e64e
tree4296bf375a3e9d01d5d4744d62216f0903045a3d
parentb1d88228ecb54140ec1f7d3f11f0fbb4d6ec5982
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