]> git.kaiwu.me - nginx.git/commit
Upstream: keep request body file from removal if requested.
authorRoman Arutyunyan <arut@nginx.com>
Wed, 19 Jul 2017 17:38:17 +0000 (20:38 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Wed, 19 Jul 2017 17:38:17 +0000 (20:38 +0300)
commita87e05a3312e06f88809320eb8dc39833ea4cbc3
tree1d4d7f06ebc82d68bc47bdb598c1f285b508ebd6
parent2c8f93df871ef722e7fbdd8420d52f53dd056cfe
Upstream: keep request body file from removal if requested.

The new request flag "preserve_body" indicates that the request body file should
not be removed by the upstream module because it may be used later by a
subrequest.  The flag is set by the SSI (ticket #585), addition and slice
modules.  Additionally, it is also set by the upstream module when a background
cache update subrequest is started to prevent the request body file removal
after an internal redirect.  Only the main request is now allowed to remove the
file.
src/http/modules/ngx_http_addition_filter_module.c
src/http/modules/ngx_http_slice_filter_module.c
src/http/modules/ngx_http_ssi_filter_module.c
src/http/ngx_http_request.h
src/http/ngx_http_upstream.c