[nginx] Made ngx_http_process_request_header() static again.
noreply at nginx.com
noreply at nginx.com
Fri Aug 22 17:02:10 UTC 2025
details: https://github.com/nginx/nginx/commit/4d857aaf435975d3c34e41d7a9cb50c0f87879ec
branches: master
commit: 4d857aaf435975d3c34e41d7a9cb50c0f87879ec
user: Sergey Kandaurov <pluknet at nginx.com>
date: Wed, 23 Jul 2025 15:56:37 +0400
description:
Made ngx_http_process_request_header() static again.
The function contains mostly HTTP/1.x specific request processing,
which has no use in other protocols. After the previous change in
HTTP/2, it can now be hidden.
This is an API change.
---
src/http/ngx_http.h | 1 -
src/http/ngx_http_request.c | 3 ++-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/http/ngx_http.h b/src/http/ngx_http.h
index 7d98f5cd7..922d3f4f9 100644
--- a/src/http/ngx_http.h
+++ b/src/http/ngx_http.h
@@ -122,7 +122,6 @@ ngx_int_t ngx_http_parse_chunked(ngx_http_request_t *r, ngx_buf_t *b,
ngx_http_request_t *ngx_http_create_request(ngx_connection_t *c);
ngx_int_t ngx_http_process_request_uri(ngx_http_request_t *r);
-ngx_int_t ngx_http_process_request_header(ngx_http_request_t *r);
void ngx_http_process_request(ngx_http_request_t *r);
void ngx_http_update_location_config(ngx_http_request_t *r);
void ngx_http_handler(ngx_http_request_t *r);
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index ceac8d307..95cb1a133 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -29,6 +29,7 @@ static ngx_int_t ngx_http_process_connection(ngx_http_request_t *r,
static ngx_int_t ngx_http_process_user_agent(ngx_http_request_t *r,
ngx_table_elt_t *h, ngx_uint_t offset);
+static ngx_int_t ngx_http_process_request_header(ngx_http_request_t *r);
static ngx_int_t ngx_http_find_virtual_server(ngx_connection_t *c,
ngx_http_virtual_names_t *virtual_names, ngx_str_t *host,
ngx_http_request_t *r, ngx_http_core_srv_conf_t **cscfp);
@@ -1984,7 +1985,7 @@ ngx_http_process_user_agent(ngx_http_request_t *r, ngx_table_elt_t *h,
}
-ngx_int_t
+static ngx_int_t
ngx_http_process_request_header(ngx_http_request_t *r)
{
if (r->headers_in.server.len == 0
More information about the nginx-devel
mailing list