[nginx] Fixed server name in special responses with "server_toke...

Maxim Dounin mdounin at mdounin.ru
Thu Feb 29 18:23:20 UTC 2024


details:   http://freenginx.org/hg/nginx/rev/697f452bc033
branches:  
changeset: 9223:697f452bc033
user:      Maxim Dounin <mdounin at 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
 ;


More information about the nginx-devel mailing list