aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.h
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2017-07-19 20:38:17 +0300
committerRoman Arutyunyan <arut@nginx.com>2017-07-19 20:38:17 +0300
commita87e05a3312e06f88809320eb8dc39833ea4cbc3 (patch)
tree1d4d7f06ebc82d68bc47bdb598c1f285b508ebd6 /src/http/ngx_http_request.h
parent2c8f93df871ef722e7fbdd8420d52f53dd056cfe (diff)
downloadnginx-a87e05a3312e06f88809320eb8dc39833ea4cbc3.tar.gz
nginx-a87e05a3312e06f88809320eb8dc39833ea4cbc3.zip
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.
Diffstat (limited to 'src/http/ngx_http_request.h')
-rw-r--r--src/http/ngx_http_request.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h
index f7f3e97f4..421004a0d 100644
--- a/src/http/ngx_http_request.h
+++ b/src/http/ngx_http_request.h
@@ -537,6 +537,7 @@ struct ngx_http_request_s {
unsigned main_filter_need_in_memory:1;
unsigned filter_need_in_memory:1;
unsigned filter_need_temporary:1;
+ unsigned preserve_body:1;
unsigned allow_ranges:1;
unsigned subrequest_ranges:1;
unsigned single_range:1;