From 3d4fccb5d40f147ba7453b6f3cb4a8dd0eb46ba6 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Tue, 4 Jun 2019 16:07:14 +0300 Subject: [PATCH] HTTP: support for null as a second argument of r.subrequest(). This closes #173 issue on Github. --- nginx/ngx_http_js_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index eb99e16c..cd8a8f95 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -1808,7 +1808,7 @@ ngx_http_js_ext_subrequest(njs_vm_t *vm, njs_value_t *args, nxt_uint_t nargs, } else if (njs_value_is_object(arg)) { options = arg; - } else if (!njs_value_is_undefined(arg)) { + } else if (!njs_value_is_null_or_undefined(arg)) { njs_vm_error(vm, "failed to convert args"); return NJS_ERROR; } -- 2.47.3