diff options
author | Dmitry Volyntsev <xeioex@nginx.com> | 2020-11-17 13:22:34 +0000 |
---|---|---|
committer | Dmitry Volyntsev <xeioex@nginx.com> | 2020-11-17 13:22:34 +0000 |
commit | 1226422816cbb1abe7cb51de6771ec177d3d507e (patch) | |
tree | 74cbb4c0c29ba59950207232013c31b05bb508a4 /nginx/ngx_http_js_module.c | |
parent | bead27fff65f295db3d0d8bba6b3389c16571847 (diff) | |
download | njs-1226422816cbb1abe7cb51de6771ec177d3d507e.tar.gz njs-1226422816cbb1abe7cb51de6771ec177d3d507e.zip |
Modules: added support for Buffer object where string is expected.
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 8685be88..68a4bf80 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -2371,7 +2371,7 @@ ngx_http_js_ext_subrequest(njs_vm_t *vm, njs_value_t *args, njs_uint_t nargs, arg = njs_arg(args, nargs, 2); if (njs_value_is_string(arg)) { - if (njs_vm_value_to_string(vm, &args_arg, arg) != NJS_OK) { + if (ngx_js_string(vm, arg, &args_arg) != NJS_OK) { njs_vm_error(vm, "failed to convert args"); return NJS_ERROR; } |