]> git.kaiwu.me - njs.git/commit
QuickJS: fixed fetch error-handling typos
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 22 May 2026 04:05:59 +0000 (21:05 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Tue, 26 May 2026 21:45:24 +0000 (14:45 -0700)
commitb40fdfb467b19ee2f549dd62e6812eb6c205d0f7
treecd2a453a3d4d3eaae40660def649b2847bcb51c9
parentb3b57208f41e66b0f49f8c4805b107bfda2ae1e1
QuickJS: fixed fetch error-handling typos

Returned the JS_ThrowOutOfMemory() result from
ngx_qjs_fetch_response_ctor() on ngx_list_init() failure: previously
the call result was discarded and execution fell through.

Replaced a stale "ret" check with "rc" after ngx_qjs_headers_fill(),
so a non-NGX_OK return is no longer ignored.

Added a NULL check after JS_ToCStringLen() on the header key in
ngx_qjs_headers_ext_keys(), and replaced a stale "value" check with
"item" when testing JS_NewStringLen() for failure.
nginx/ngx_qjs_fetch.c