]> git.kaiwu.me - njs.git/commit
HTTP: improved r.parent property handler.
authorDmitry Volyntsev <xeioex@nginx.com>
Mon, 25 Nov 2019 14:54:58 +0000 (17:54 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Mon, 25 Nov 2019 14:54:58 +0000 (17:54 +0300)
commit0fa4360a5965b66a9055d3b0cd1170faa758365e
tree6d9c93fd4df480e4a8e072c1890f25c01092d8fc
parent2116fe30c971c265dccf51285b49791da9e866d2
HTTP: improved r.parent property handler.

Previously, r.parent handler threw an exception if it was called not for
a subrequest.  This is too restrictive, as it prevents any iterations
over all r properties (for example: JSON.stringify()).

Instead, "undefined" value is returned as it is already done for
r.requestBody when request body is unavailable.
nginx/ngx_http_js_module.c