]> git.feebdaed.xyz Git - 0xmirror/nginx.git/commitdiff
Made ngx_http_process_request_header() static again.
authorSergey Kandaurov <pluknet@nginx.com>
Wed, 23 Jul 2025 11:56:37 +0000 (15:56 +0400)
committerpluknet <pluknet@nginx.com>
Sun, 3 Aug 2025 06:07:07 +0000 (10:07 +0400)
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
src/http/ngx_http_request.c

index 7d98f5cd7790b3f0382dad56f29d7d9368254fbe..922d3f4f9ec538eba865da6024dc60e34db32485 100644 (file)
@@ -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);
index ceac8d307ef644edda24430877e98a14b28459a1..95cb1a133c85885086985190435c8ec6917682fd 100644 (file)
@@ -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