details:   http://freenginx.org/hg/nginx/rev/697f452bc033
branches:  
changeset: 9223:697f452bc033
user:      Maxim Dounin <mdou...@mdounin.ru>
date:      Thu Feb 29 19:24:26 2024 +0300
description:
Fixed server name in special responses with "server_tokens off;".

Missed in 9213:23f109f0facc.

Reported by Antanas PataĊĦius.

diffstat:

 src/http/ngx_http_special_response.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/src/http/ngx_http_special_response.c 
b/src/http/ngx_http_special_response.c
--- 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
 ;
-- 
nginx-devel mailing list
nginx-devel@freenginx.org
https://freenginx.org/mailman/listinfo/nginx-devel

Reply via email to