]> git.kaiwu.me - njs.git/commit
Modules: extending allowed context for js directives.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 3 Aug 2022 03:45:17 +0000 (20:45 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Wed, 3 Aug 2022 03:45:17 +0000 (20:45 -0700)
commit1b54abb3c2373f76d20698ea56cd4f251fc50d2f
tree33cbedacf1cf95451978938e607324c5abb653b5
parent89e74fe775f25033389c28017bf3be5fec263ac9
Modules: extending allowed context for js directives.

HTTP: js_import, js_path, js_set and js_var are allowed in server and
location contexts. js_content, js_body_filter and js_header_filter
are allowed in 'if' context.
Stream: js_import, js_path, js_set and js_var are allowed in server context.

This closes #566 issue on Github.
nginx/ngx_http_js_module.c
nginx/ngx_stream_js_module.c