]> git.kaiwu.me - njs.git/commit
HTTP: fixed handling of 0 length request body.
authorDmitry Volyntsev <xeioex@nginx.com>
Mon, 20 May 2024 23:44:10 +0000 (16:44 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Mon, 20 May 2024 23:44:10 +0000 (16:44 -0700)
commit74854b6edaa8a76fdc96395cdc7fbdfcd01425b6
tree5b07ca4626f6f7d08abc00f5c5eb0776f66186e4
parentcfeb2a622208b6ee330955d50f8a39394962ec4a
HTTP: fixed handling of 0 length request body.

Previously, when r.requestBuffer was passed as a body argument to
ngx.fetch() or r.subrequest() then exception was thrown "Error: invalid
Request body" when the request body had 0 length.
src/njs_vm.c