summaryrefslogtreecommitdiffhomepage
path: root/src/http
diff options
context:
space:
mode:
authorZoey <zoey@z0ey.de>2026-04-05 11:31:15 +0200
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>2026-04-06 14:53:54 +0400
commit067d766f210ee914b750d79d9284cbf8801058f3 (patch)
tree3afe3c94fc3f35843f5437a29d7a581f6b48404b /src/http
parent365694160a85229a7cb006738de9260d49ff5fa2 (diff)
downloadnginx-067d766f210ee914b750d79d9284cbf8801058f3.tar.gz
nginx-067d766f210ee914b750d79d9284cbf8801058f3.tar.bz2
Fix $request_port and $is_request_port in subrequests
Closes #1247.
Diffstat (limited to 'src/http')
-rw-r--r--src/http/ngx_http_core_module.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 0c46106db..53ddf39bb 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -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;