diff options
| author | skokalin <sergey.kokalin@gmail.com> | 2025-05-28 17:47:42 +0400 |
|---|---|---|
| committer | Andrew Clayton <a.clayton@nginx.com> | 2025-05-28 17:27:04 +0100 |
| commit | 9ae106730e28f89aed7987d40c9387057df4784e (patch) | |
| tree | 1bf51918ffbf0a6a13362dd7b86c2142055aecf7 /src/java/nxt_jni_Request.c | |
| parent | 39f9121339559738cba5130c818e8920e1a2fa16 (diff) | |
| download | unit-9ae106730e28f89aed7987d40c9387057df4784e.tar.gz unit-9ae106730e28f89aed7987d40c9387057df4784e.tar.bz2 | |
node.js: Fixed issue with duplicate headers in response
It fixes losing context in response in cases when there are 2 or more
headers with the same name. The prev implementation used to use foreach
function which uses local lexical environment and did not find
this.headers_len locally, which causes crash of the http server module.
It was replaced with a for loop in order to make access for this.headers_len
variable and improve performance of calculation.
Closes: https://github.com/nginx/unit/issues/1621
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/java/nxt_jni_Request.c')
0 files changed, 0 insertions, 0 deletions
