]> git.kaiwu.me - nginx.git/commitdiff
Upstream: fixed MSVC compilation after dea68dbf126f.
authorVadim Zhestikov <v.zhestikov@f5.com>
Mon, 10 Aug 2026 21:17:08 +0000 (14:17 -0700)
committerVadimZhestikov <108960056+VadimZhestikov@users.noreply.github.com>
Tue, 11 Aug 2026 02:18:08 +0000 (19:18 -0700)
src/http/modules/ngx_http_grpc_module.c
src/http/modules/ngx_http_proxy_module.c
src/http/modules/ngx_http_proxy_v2_module.c

index 1aecc5aeb202ed2f336ca73acf1d8a62a9633508..ab68b46ee58678238ed03aeac4962c4be6c35a63 100644 (file)
@@ -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)
index 384c2ee70a9d643814c223a7d43654e24caa8787..43c2f24a39eb8e2b678efc145855796978f93083 100644 (file)
@@ -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)
index 337561f2dbd2614b641548d0d2a855a9bee03728..a0ccb5d2669ed93716dcf9f00606ca728fb51d77 100644 (file)
@@ -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)