Welcome! Log In Create A New Profile

Advanced

[njs] HTTP: skipping deleted elements while iterating over headers.

Dmitry Volyntsev
February 07, 2019 12:42PM
details: https://hg.nginx.org/njs/rev/2feb1b5a210d
branches:
changeset: 768:2feb1b5a210d
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Thu Feb 07 20:05:16 2019 +0300
description:
HTTP: skipping deleted elements while iterating over headers.

diffstat:

nginx/ngx_http_js_module.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 0913527ad077 -r 2feb1b5a210d nginx/ngx_http_js_module.c
--- a/nginx/ngx_http_js_module.c Thu Feb 07 20:05:14 2019 +0300
+++ b/nginx/ngx_http_js_module.c Thu Feb 07 20:05:16 2019 +0300
@@ -860,6 +860,10 @@ ngx_http_js_ext_next_header(njs_vm_t *vm
header = entry->part->elts;
h = &header[entry->item++];

+ if (h->hash == 0) {
+ continue;
+ }
+
return njs_string_create(vm, value, h->key.data, h->key.len, 0);
}

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] HTTP: skipping deleted elements while iterating over headers.

Dmitry Volyntsev 86 February 07, 2019 12:42PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 90
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready