]> git.kaiwu.me - njs.git/commit
HTTP: fixed missing exceptions in njs handlers
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 3 Jun 2026 02:05:53 +0000 (19:05 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 3 Jun 2026 21:34:17 +0000 (14:34 -0700)
commitd7996f1b9b89eedf9e8809efd70b4fd21a651aa7
treec4686acf2449c41974f406491504912611e06354
parent6292a22a73ada499549ec9b5d99117c29570bd9d
HTTP: fixed missing exceptions in njs handlers

Set pending exceptions before returning NJS_ERROR from njs response output
paths.  Previously sendHeader(), send(), and finish() could fail without an
exception being available to the VM.
nginx/ngx_http_js_module.c