comparison 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
comparison
equal deleted inserted replaced
9221:a7c41e449bbe 9222:0b51902d9f24
44 NULL, /* exit master */ 44 NULL, /* exit master */
45 NGX_MODULE_V1_PADDING 45 NGX_MODULE_V1_PADDING
46 }; 46 };
47 47
48 48
49 static u_char ngx_http_server_string[] = "Server: nginx" CRLF; 49 static u_char ngx_http_server_string[] = "Server: " NGINX_NAME CRLF;
50 static u_char ngx_http_server_full_string[] = "Server: " NGINX_VER CRLF; 50 static u_char ngx_http_server_full_string[] = "Server: " NGINX_VER CRLF;
51 static u_char ngx_http_server_build_string[] = "Server: " NGINX_VER_BUILD CRLF; 51 static u_char ngx_http_server_build_string[] = "Server: " NGINX_VER_BUILD CRLF;
52 52
53 53
54 static ngx_str_t ngx_http_status_lines[] = { 54 static ngx_str_t ngx_http_status_lines[] = {