From 72d8eed53af4c2cd6f3e30a2efe0e38d66f5e176 Mon Sep 17 00:00:00 2001 From: Pavel Pautov Date: Tue, 21 Jan 2025 23:02:39 -0800 Subject: [PATCH] Fix build against Nginx 1.22 (fix #85). --- src/http_module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http_module.cpp b/src/http_module.cpp index ef77ffb..78a5e89 100644 --- a/src/http_module.cpp +++ b/src/http_module.cpp @@ -296,10 +296,10 @@ ngx_int_t setHeader(ngx_http_request_t* r, StrView name, StrView value) return NGX_ERROR; } + *header = {}; header->hash = hash; header->key = toNgxStr(name); header->lowcase_key = header->key.data; - header->next = NULL; } header->value = toNgxStr(value);