aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorVladimir Khomutov <vl@wbsrv.ru>2023-11-28 12:57:14 +0300
committerVladimir Khomutov <vl@wbsrv.ru>2023-11-28 12:57:14 +0300
commit0db94ba96a00ebfc4a3c55af8eaaf20f971a7c4c (patch)
tree2a351f0f9323395b8ec3a67d7d434f035d8bd4cc /src/http/ngx_http_request.c
parentf9a25736fd049075baf76a35628d2351b20f8ab8 (diff)
downloadnginx-0db94ba96a00ebfc4a3c55af8eaaf20f971a7c4c.tar.gz
nginx-0db94ba96a00ebfc4a3c55af8eaaf20f971a7c4c.zip
HTTP: removed unused r->port_start and r->port_end.
Neither r->port_start nor r->port_end were ever used. The r->port_end is set by the parser, though it was never used by the following code (and was never usable, since not copied by the ngx_http_alloc_large_header_buffer() without r->port_start set).
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index bd2be5eac..058d50286 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1735,11 +1735,6 @@ ngx_http_alloc_large_header_buffer(ngx_http_request_t *r,
}
}
- if (r->port_start) {
- r->port_start = new + (r->port_start - old);
- r->port_end = new + (r->port_end - old);
- }
-
if (r->uri_ext) {
r->uri_ext = new + (r->uri_ext - old);
}