aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/http/v2/ngx_http_v2_filter_module.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/v2/ngx_http_v2_filter_module.c b/src/http/v2/ngx_http_v2_filter_module.c
index da78407ee..235a006ff 100644
--- a/src/http/v2/ngx_http_v2_filter_module.c
+++ b/src/http/v2/ngx_http_v2_filter_module.c
@@ -231,6 +231,10 @@ ngx_http_v2_header_filter(ngx_http_request_t *r)
server_tokens = clcf->server_tokens;
+#if (NGX_SUPPRESS_WARN)
+ ngx_str_null(&tokens);
+#endif
+
if (r->headers_out.server == NULL) {
if (server_tokens == 0) {