]> git.kaiwu.me - nginx.git/commitdiff
Tunnel: ignore request body
authorRoman Arutyunyan <arut@nginx.com>
Fri, 5 Jun 2026 11:26:21 +0000 (15:26 +0400)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Wed, 15 Jul 2026 14:37:17 +0000 (18:37 +0400)
Previously, client request body was considered tunnel payload.

Reported by NiubiKlasLi.

src/http/modules/ngx_http_tunnel_module.c

index 5925a63767473939b124e281f96782bcdf8c9158..ddffebbcaaeb05b0fbf72f0079e6ce78ed6ee0ba 100644 (file)
@@ -271,7 +271,7 @@ ngx_http_tunnel_eval(ngx_http_request_t *r, ngx_http_tunnel_loc_conf_t *tlcf)
 static ngx_int_t
 ngx_http_tunnel_create_request(ngx_http_request_t *r)
 {
-    /* u->request_bufs = NULL */
+    r->upstream->request_bufs = NULL;
 
     return NGX_OK;
 }