comparison src/http/modules/ngx_http_xslt_filter_module.c @ 7686:1f3bf1734a77

Xslt: disabled ranges. Previously, the document generated by the xslt filter was always fully sent to client even if a range was requested and response status was 206 with appropriate Content-Range. The xslt module is unable to serve a range because of suspending the header filter chain. By the moment full response xml is buffered by the xslt filter, range header filter is not called yet, but the range body filter has already been called and did nothing. The fix is to disable ranges by resetting the r->allow_ranges flag much like the image filter that employs a similar technique.
author Roman Arutyunyan <arut@nginx.com>
date Wed, 22 Jul 2020 22:16:19 +0300
parents 9a970c905045
children
comparison
equal deleted inserted replaced
7685:4f30f75dbdf3 7686:1f3bf1734a77
231 } 231 }
232 232
233 ngx_http_set_ctx(r, ctx, ngx_http_xslt_filter_module); 233 ngx_http_set_ctx(r, ctx, ngx_http_xslt_filter_module);
234 234
235 r->main_filter_need_in_memory = 1; 235 r->main_filter_need_in_memory = 1;
236 r->allow_ranges = 0;
236 237
237 return NGX_OK; 238 return NGX_OK;
238 } 239 }
239 240
240 241