diff src/http/modules/ngx_http_proxy_module.c @ 8032:2025aae94739

Upstream: all known headers in u->headers_in are linked lists now.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 30 May 2022 21:25:46 +0300
parents ef6a3a99a81a
children 2bf7792c262e
line wrap: on
line diff
--- a/src/http/modules/ngx_http_proxy_module.c
+++ b/src/http/modules/ngx_http_proxy_module.c
@@ -1965,6 +1965,7 @@ ngx_http_proxy_process_header(ngx_http_r
                 ngx_str_set(&h->key, "Server");
                 ngx_str_null(&h->value);
                 h->lowcase_key = (u_char *) "server";
+                h->next = NULL;
             }
 
             if (r->upstream->headers_in.date == NULL) {
@@ -1978,6 +1979,7 @@ ngx_http_proxy_process_header(ngx_http_r
                 ngx_str_set(&h->key, "Date");
                 ngx_str_null(&h->value);
                 h->lowcase_key = (u_char *) "date";
+                h->next = NULL;
             }
 
             /* clear content length if response is chunked */