Mercurial > nginx
changeset 9440:1682a4e21ce8
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.
| author | Sergey Kandaurov <pluknet@nginx.com> |
|---|---|
| date | Wed, 23 Jul 2025 15:56:37 +0400 |
| parents | 4c6f3995ad2e |
| children | d99bd28cbaf4 |
| files | src/http/ngx_http.h src/http/ngx_http_request.c |
| diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http.h Wed Jul 23 14:54:07 2025 +0400 +++ b/src/http/ngx_http.h Wed Jul 23 15:56:37 2025 +0400 @@ -122,7 +122,6 @@ 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);
--- a/src/http/ngx_http_request.c Wed Jul 23 14:54:07 2025 +0400 +++ b/src/http/ngx_http_request.c Wed Jul 23 15:56:37 2025 +0400 @@ -29,6 +29,7 @@ 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_int_t +static ngx_int_t ngx_http_process_request_header(ngx_http_request_t *r) { if (r->headers_in.server.len == 0
