From: Dmitry Volyntsev Date: Tue, 4 Jun 2019 13:07:14 +0000 (+0300) Subject: HTTP: support for null as a second argument of r.subrequest(). X-Git-Tag: 0.3.3~17 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=3d4fccb5d40f147ba7453b6f3cb4a8dd0eb46ba6;p=njs.git HTTP: support for null as a second argument of r.subrequest(). This closes #173 issue on Github. --- 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; }