]> git.kaiwu.me - njs.git/commit
Fetch: fix Content-Length reservation in request building
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 11 Jun 2026 23:50:23 +0000 (16:50 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Fri, 12 Jun 2026 03:26:59 +0000 (20:26 -0700)
commit02d83583dd698eb1e989f271d9854d78c5de87de
treeef1d75f0ad5773953557fe03f5cd1e484f680147
parent645655aa21234fdd7dbf8f4c058e78c6680253ee
Fetch: fix Content-Length reservation in request building

Previously, the reservation passed to njs_chb_sprintf() was too
small for the maximum size_t output, so the header could be
silently truncated for very large request bodies.
nginx/ngx_js_http.c