]> git.kaiwu.me - nginx.git/commit
Xslt: disabled ranges.
authorRoman Arutyunyan <arut@nginx.com>
Wed, 22 Jul 2020 19:16:19 +0000 (22:16 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Wed, 22 Jul 2020 19:16:19 +0000 (22:16 +0300)
commit4dd43dfca71f3fc2c6768606ff3700a4317a9176
treefaae0fa4a7d59bbe5a1de1d0820cf1739b416861
parent80daef96f1e1de397b8bc455ac3a3fbc060607cf
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.
src/http/modules/ngx_http_xslt_filter_module.c