diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2019-06-04 16:07:14 +0300 |
---|---|---|
committer | Dmitry Volyntsev <xeioex@nginx.com> | 2019-06-04 16:07:14 +0300 |
commit | 3d4fccb5d40f147ba7453b6f3cb4a8dd0eb46ba6 (patch) | |
tree | 51d50529c0c5abed2f8c11e3c47be5be1e37d950 /nginx/ngx_http_js_module.c | |
parent | d14fed64975e3168346038a5ce5e11534ad84b57 (diff) | |
download | njs-3d4fccb5d40f147ba7453b6f3cb4a8dd0eb46ba6.tar.gz njs-3d4fccb5d40f147ba7453b6f3cb4a8dd0eb46ba6.zip |
HTTP: support for null as a second argument of r.subrequest().
This closes #173 issue on Github.
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r-- | nginx/ngx_http_js_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |