# HG changeset patch
# User Roman Arutyunyan <arut@nginx.com>
# Date 1489736129 -10800
# Fri Mar 17 10:35:29 2017 +0300
# Node ID c6d36e454ce4ec4e6d186bd77ce1c9063349d19a
# Parent 5dc0a496c997ad50c61d8a0a35a1fcb04aade6d3
Slice filter: disabled internal redirects in subrequests.
Internal redirects should be disabled in slice requests other than the first
request. If they aren't, slice filters pass through all output. This output
can be irrelevant in case of error_page. Moreover, slice byte counter is not
updated. When parent request is activated again, a new subrequest for the
same slice is started, causing an infinite loop.
diff --git a/src/http/modules/ngx_http_slice_filter_module.c b/src/http/modules/ngx_http_slice_filter_module.c
|
a
|
b
|
ngx_http_slice_body_filter(ngx_http_requ
|
| 251 | 251 | return NGX_ERROR; |
| 252 | 252 | } |
| 253 | 253 | |
| | 254 | sr->uri_changes = 0; |
| | 255 | |
| 254 | 256 | ngx_http_set_ctx(sr, ctx, ngx_http_slice_filter_module); |
| 255 | 257 | |
| 256 | 258 | slcf = ngx_http_get_module_loc_conf(r, ngx_http_slice_filter_module); |