]> git.kaiwu.me - nginx.git/commitdiff
Fix $request_port and $is_request_port in subrequests
authorZoey <zoey@z0ey.de>
Sun, 5 Apr 2026 09:31:15 +0000 (11:31 +0200)
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>
Mon, 6 Apr 2026 10:53:54 +0000 (14:53 +0400)
Closes #1247.

src/http/ngx_http_core_module.c

index 0c46106db66cf1949707728e2579ab845ba6296d..53ddf39bb8723bd4f085a816765a1db746aca788 100644 (file)
@@ -2453,6 +2453,8 @@ ngx_http_subrequest(ngx_http_request_t *r,
     sr->method = NGX_HTTP_GET;
     sr->http_version = r->http_version;
 
+    sr->port = r->port;
+
     sr->request_line = r->request_line;
     sr->uri = *uri;