diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index 8d5385c1d..dd9036312 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -1973,6 +1973,8 @@ ngx_http_proxy_process_header(ngx_http_request_t *r) if (rc != NGX_OK) { return rc; } + } else { + h->next = NULL; } continue;