changeset 9223:697f452bc033

Fixed server name in special responses with "server_tokens off;". Missed in 9213:23f109f0facc. Reported by Antanas PataĊĦius.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 29 Feb 2024 19:24:26 +0300
parents 0b51902d9f24
children c7c8354f99fa
files src/http/ngx_http_special_response.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_special_response.c
+++ b/src/http/ngx_http_special_response.c
@@ -33,7 +33,7 @@ static u_char ngx_http_error_build_tail[
 
 
 static u_char ngx_http_error_tail[] =
-"<hr><center>nginx</center>" CRLF
+"<hr><center>" NGINX_NAME "</center>" CRLF
 "</body>" CRLF
 "</html>" CRLF
 ;