]> git.kaiwu.me - nginx.git/commit
Slice filter: fetch slices in cloned subrequests.
authorRoman Arutyunyan <arut@nginx.com>
Fri, 10 Feb 2017 13:33:12 +0000 (16:33 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Fri, 10 Feb 2017 13:33:12 +0000 (16:33 +0300)
commitb9a031622b7bf586a9c724dade16abfac188f2f2
tree5ab772e2d0b36782047cc14e469dd6d47edbcda0
parent3e4339eacd35084afae67826295b29ae7ad73dc5
Slice filter: fetch slices in cloned subrequests.

Previously, slice subrequest location was selected based on request URI.
If request is then redirected to a new location, its context array is cleared,
making the slice module loose current slice range information.  This lead to
broken output.  Now subrequests with the NGX_HTTP_SUBREQUEST_CLONE flag are
created for slices.  Such subrequests stay in the same location as the parent
request and keep the right slice context.
src/http/modules/ngx_http_slice_filter_module.c