diff options
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r-- | nginx/ngx_http_js_module.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index 0c0d9114..5f8600df 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -3836,7 +3836,6 @@ ngx_http_js_header_out_special(njs_vm_t *vm, ngx_http_request_t *r, return NJS_ERROR; } - h = NULL; part = &headers->part; header = part->elts; @@ -3861,10 +3860,14 @@ ngx_http_js_header_out_special(njs_vm_t *vm, ngx_http_request_t *r, if (h->key.len == v->length && ngx_strncasecmp(h->key.data, v->start, v->length) == 0) { - break; + goto done; } } + h = NULL; + +done: + if (h != NULL && s.length == 0) { h->hash = 0; h = NULL; |