From: Roman Arutyunyan Date: Fri, 5 Jun 2026 11:26:21 +0000 (+0400) Subject: Tunnel: ignore request body X-Git-Tag: release-1.31.3~10 X-Git-Url: http://git.kaiwu.me/http/doc/$%7BGITURL%7D/static/gitweb.js?a=commitdiff_plain;h=f847651efa19d8ce4b1fb51461f9830da4568503;p=nginx.git Tunnel: ignore request body Previously, client request body was considered tunnel payload. Reported by NiubiKlasLi. --- diff --git a/src/http/modules/ngx_http_tunnel_module.c b/src/http/modules/ngx_http_tunnel_module.c index 5925a6376..ddffebbca 100644 --- a/src/http/modules/ngx_http_tunnel_module.c +++ b/src/http/modules/ngx_http_tunnel_module.c @@ -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; }