From 20e70449f83456ea6cf0013a98bbc33a3c5823fb Mon Sep 17 00:00:00 2001 From: "Yichun Zhang (agentzh)" Date: Sat, 5 Aug 2017 15:05:13 -0700 Subject: [PATCH] fixed the nginx server_header patch. --- patches/nginx-1.13.2-server_header.patch | 32 +++++++++++++----------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/patches/nginx-1.13.2-server_header.patch b/patches/nginx-1.13.2-server_header.patch index 58ec575..5672768 100644 --- a/patches/nginx-1.13.2-server_header.patch +++ b/patches/nginx-1.13.2-server_header.patch @@ -1,24 +1,26 @@ -diff -ur nginx-1.13.2/src/core/nginx.h nginx-1.13.2-patched/src/core/nginx.h ---- nginx-1.13.2/src/core/nginx.h 2010-02-12 17:31:01.000000000 +0800 -+++ nginx-1.13.2-patched/src/core/nginx.h 2010-03-30 10:52:13.240702627 +0800 -@@ -10,7 +10,7 @@ +diff --git a/src/core/nginx.h b/src/core/nginx.h +index 37e257fc..fd49eff7 100644 +--- a/src/core/nginx.h ++++ b/src/core/nginx.h +@@ -11,7 +11,7 @@ - #define nginx_version 1013002 + #define nginx_version 1013002 #define NGINX_VERSION "1.13.2" -#define NGINX_VER "nginx/" NGINX_VERSION +#define NGINX_VER "openresty/" NGINX_VERSION ".unknown" - #define NGINX_VAR "NGINX" - #define NGX_OLDPID_EXT ".oldbin" -diff -ur nginx-1.13.2/src/http/ngx_http_header_filter_module.c nginx-1.13.2-patched/src/http/ngx_http_header_filter_module.c ---- nginx-1.13.2/src/http/ngx_http_header_filter_module.c 2010-03-03 23:14:04.000000000 +0800 -+++ nginx-1.13.2-patched/src/http/ngx_http_header_filter_module.c 2010-03-30 10:52:53.670909405 +0800 -@@ -45,7 +45,7 @@ + #ifdef NGX_BUILD + #define NGINX_VER_BUILD NGINX_VER " (" NGX_BUILD ")" +diff --git a/src/http/ngx_http_header_filter_module.c b/src/http/ngx_http_header_filter_module.c +index 9b894059..ca13f2a3 100644 +--- a/src/http/ngx_http_header_filter_module.c ++++ b/src/http/ngx_http_header_filter_module.c +@@ -46,7 +46,7 @@ ngx_module_t ngx_http_header_filter_module = { }; --static char ngx_http_server_string[] = "Server: nginx" CRLF; -+static char ngx_http_server_string[] = "Server: openresty" CRLF; - static char ngx_http_server_full_string[] = "Server: " NGINX_VER CRLF; - +-static u_char ngx_http_server_string[] = "Server: nginx" CRLF; ++static u_char ngx_http_server_string[] = "Server: openresty" CRLF; + static u_char ngx_http_server_full_string[] = "Server: " NGINX_VER CRLF; + static u_char ngx_http_server_build_string[] = "Server: " NGINX_VER_BUILD CRLF;