]> git.kaiwu.me - njs.git/commit
HTTP: fixed setting of Location header.
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 6 Jun 2023 01:21:06 +0000 (18:21 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Tue, 6 Jun 2023 01:21:06 +0000 (18:21 -0700)
commit71e70e61fc5a3a946dcb7b3076559eafdf480137
tree3420f7755a0790d8ee691554e02ed02a09864d88
parent39758703a0e2017d3bd80fd79ce316ac7ca8b442
HTTP: fixed setting of Location header.

Previously, r.headersOut['Location'] setter did not update
r->headers_out.location. As a result a client might get two
Location headers.

This fixes #648 issue on Github.
nginx/ngx_http_js_module.c
nginx/t/js_headers.t