mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 12:22:41 +08:00
http: use variable for better maintainability
In `ngx_http-special_response.c`, replace the hard-coded `"nginx"` string literal with the `NGINX_VAR` variable to enhance maintainability. This change should follow the same structure used on lines 21 and 28, ensuring clarity and consistency.
This commit is contained in:
parent
f3542500b6
commit
762a1b5664
@ -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_VAR"</center>" CRLF
|
||||
"</body>" CRLF
|
||||
"</html>" CRLF
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user