From: Vadim Zhestikov Date: Mon, 10 Aug 2026 21:17:08 +0000 (-0700) Subject: Upstream: fixed MSVC compilation after dea68dbf126f. X-Git-Tag: release-1.31.4~7 X-Git-Url: https://git.kaiwu.me/%7B@url%7D?a=commitdiff_plain;h=0826449c595b0791175e5425ddb0f79b7a75878e;p=nginx.git Upstream: fixed MSVC compilation after dea68dbf126f. --- diff --git a/src/http/modules/ngx_http_grpc_module.c b/src/http/modules/ngx_http_grpc_module.c index 1aecc5aeb..ab68b46ee 100644 --- a/src/http/modules/ngx_http_grpc_module.c +++ b/src/http/modules/ngx_http_grpc_module.c @@ -811,6 +811,9 @@ ngx_http_grpc_create_request(ngx_http_request_t *r) /* :authority header */ host.len = 0; +#if (NGX_SUPPRESS_WARN) + host.data = NULL; +#endif if (glcf->host_value && ngx_http_complex_value(r, glcf->host_value, &host) != NGX_OK) diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index 384c2ee70..43c2f24a3 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -1226,6 +1226,9 @@ ngx_http_proxy_create_request(ngx_http_request_t *r) ctx = ngx_http_get_module_ctx(r, ngx_http_proxy_module); host.len = 0; +#if (NGX_SUPPRESS_WARN) + host.data = NULL; +#endif if (plcf->host_value && ngx_http_complex_value(r, plcf->host_value, &host) != NGX_OK) diff --git a/src/http/modules/ngx_http_proxy_v2_module.c b/src/http/modules/ngx_http_proxy_v2_module.c index 337561f2d..a0ccb5d26 100644 --- a/src/http/modules/ngx_http_proxy_v2_module.c +++ b/src/http/modules/ngx_http_proxy_v2_module.c @@ -446,6 +446,9 @@ ngx_http_proxy_v2_create_request(ngx_http_request_t *r) /* :authority header */ host.len = 0; +#if (NGX_SUPPRESS_WARN) + host.data = NULL; +#endif if (plcf->host_value && ngx_http_complex_value(r, plcf->host_value, &host) != NGX_OK)