]> git.kaiwu.me - njs.git/commit
Fetch: validate response framing
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 15 Sep 2026 22:46:22 +0000 (15:46 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 16 Sep 2026 21:17:38 +0000 (14:17 -0700)
commitf7800499466f7ac8155ce0768a2ab9dbed5261f5
tree1301bfbab272b3db1a36c86c4c5405b8e38d78a2
parent3f5ac135f9aee182fdd62ba3236e878440ce0e38
Fetch: validate response framing

Previously, fetch accepted conflicting Content-Length fields and a response
with both Transfer-Encoding and Content-Length.

The fix is to reject ambiguous framing to avoid interpreting the response
body inconsistently.
nginx/ngx_js_http.c
nginx/ngx_js_http.h
nginx/t/js_fetch.t