]> git.kaiwu.me - njs.git/commit
HTTP: fixed r.headersOut setter for special headers.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 6 Jul 2022 23:52:50 +0000 (16:52 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Wed, 6 Jul 2022 23:52:50 +0000 (16:52 -0700)
commit7f37bf30ee5b43ee346649ce66c823a435bd70d8
tree142243ff8f0ac6e28f0ab5ef8bf37a57e5d81d7c
parente0e56b0da80406a01d8c3e733c96b4bdfb7409ac
HTTP: fixed r.headersOut setter for special headers.

The issue was introduced in 5b7676ec600d (0.7.5) when njs module was
adapted to changes in nginx/1.23 related to header structures.

When special headers (Content-Length, Content-Type, Content-Encoding)
were set, the value of the last outgoing header might be overwritten
with a new set value.

This closes #555 issue on Github.
nginx/ngx_http_js_module.c