summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2025-07-23 15:56:37 +0400
committerpluknet <pluknet@nginx.com>2025-08-03 10:07:07 +0400
commit4d857aaf435975d3c34e41d7a9cb50c0f87879ec (patch)
tree013429fd8f6661ef63c2b3e9d1c4e94adb42770f /src
parentede5623b1529131fcc3f994e6a6f0692954fa26b (diff)
downloadnginx-4d857aaf435975d3c34e41d7a9cb50c0f87879ec.tar.gz
nginx-4d857aaf435975d3c34e41d7a9cb50c0f87879ec.tar.bz2
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.
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http.h1
-rw-r--r--src/http/ngx_http_request.c3
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