From 5a24a0e5c97dd5452c700d199b04693889bc29ad 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);