optimize: shortened the server string "ngx_openresty" to "openresty".

This commit is contained in:
Yichun Zhang (agentzh) 2013-12-15 13:24:52 -08:00
parent 8cec47f755
commit 4bab759ea3
2 changed files with 4 additions and 4 deletions

View File

@ -6,8 +6,8 @@ diff -upr nginx-1.5.7/src/core/nginx.h nginx-1.5.7-patched/src/core/nginx.h
#define nginx_version 1005007
#define NGINX_VERSION "1.5.7"
-#define NGINX_VER "ngx_openresty/" NGINX_VERSION ".unknown"
+#define NGINX_VER "ngx_openresty/" NGINX_VERSION ".unknown (no pool)"
-#define NGINX_VER "openresty/" NGINX_VERSION ".unknown"
+#define NGINX_VER "openresty/" NGINX_VERSION ".unknown (no pool)"
#define NGINX_VAR "NGINX"
Only in nginx-1.5.7-patched/src/core: nginx.h.orig

View File

@ -6,7 +6,7 @@ diff -ur lz-nginx-1.5.7/nginx-1.5.7/src/core/nginx.h lz-nginx-1.5.7-patched/ngin
#define nginx_version 1005007
#define NGINX_VERSION "1.5.7"
-#define NGINX_VER "nginx/" NGINX_VERSION
+#define NGINX_VER "ngx_openresty/" NGINX_VERSION ".unknown"
+#define NGINX_VER "openresty/" NGINX_VERSION ".unknown"
#define NGINX_VAR "NGINX"
#define NGX_OLDPID_EXT ".oldbin"
@ -20,7 +20,7 @@ diff -ur lz-nginx-1.5.7/nginx-1.5.7/src/http/ngx_http_header_filter_module.c lz-
-static char ngx_http_server_string[] = "Server: nginx" CRLF;
+static char ngx_http_server_string[] = "Server: ngx_openresty" CRLF;
+static char ngx_http_server_string[] = "Server: openresty" CRLF;
static char ngx_http_server_full_string[] = "Server: " NGINX_VER CRLF;