]> git.kaiwu.me - njs.git/commit
HTTP: fixed promise subrequest() with error_page redirect.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 18 Nov 2020 18:09:11 +0000 (18:09 +0000)
committerDmitry Volyntsev <xeioex@nginx.com>
Wed, 18 Nov 2020 18:09:11 +0000 (18:09 +0000)
commitec09e998dcc46653525a9c81d59fbe2e0f47a58d
tree28248bee5f23f2eac3eca87b5e08cf20f3057b3c
parent1226422816cbb1abe7cb51de6771ec177d3d507e
HTTP: fixed promise subrequest() with error_page redirect.

Previously, promise callbacks for a subrequest were stored in a
subrequest context.  This is incorrect because a subrequest content may
be destroyed (for example when error_page with redirect is enabled for a
subrequest location).

The fix is to store callbacks in the parent context.

The issue was introduced in 6fccbc9f1288 (0.3.8).
nginx/ngx_http_js_module.c