Mercurial > hg > nginx
diff src/http/ngx_http_header_filter_module.c @ 9222:0b51902d9f24
Fixed server name in HTTP/1.x with "server_tokens off;".
Missed in 9213:23f109f0facc.
author | Tatsuya Kaneko <catatsuy@catatsuy.org> |
---|---|
date | Mon, 26 Feb 2024 00:40:58 +0300 |
parents | 7c2adf237091 |
children | afd36b161859 |
line wrap: on
line diff
--- a/src/http/ngx_http_header_filter_module.c +++ b/src/http/ngx_http_header_filter_module.c @@ -46,7 +46,7 @@ ngx_module_t ngx_http_header_filter_mod }; -static u_char ngx_http_server_string[] = "Server: nginx" CRLF; +static u_char ngx_http_server_string[] = "Server: " NGINX_NAME CRLF; static u_char ngx_http_server_full_string[] = "Server: " NGINX_VER CRLF; static u_char ngx_http_server_build_string[] = "Server: " NGINX_VER_BUILD CRLF;