details: https://hg.nginx.org/njs/rev/2feb1b5a210d branches: changeset: 768:2feb1b5a210d user: Dmitry Volyntsev <xei...@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