Skip to content

Commit 72d8eed

Browse files
committed
Fix build against Nginx 1.22 (fix #85).
1 parent f578402 commit 72d8eed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http_module.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,10 @@ ngx_int_t setHeader(ngx_http_request_t* r, StrView name, StrView value)
296296
return NGX_ERROR;
297297
}
298298

299+
*header = {};
299300
header->hash = hash;
300301
header->key = toNgxStr(name);
301302
header->lowcase_key = header->key.data;
302-
header->next = NULL;
303303
}
304304

305305
header->value = toNgxStr(value);

0 commit comments

Comments
 (0)