aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nginx-naxsi/anonymise.patch
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2015-12-29 16:11:49 +0000
committerChristian Kampka <christian@kampka.net>2015-12-29 17:22:09 +0100
commite865d0f2e8896edaf423a6782ebea6cbd5ae5864 (patch)
treed654e6856acbf927dcd1b20e474988820cb36e16 /testing/nginx-naxsi/anonymise.patch
parent676bbd290fd7c933d9f330c0d2d2eb30f20ed802 (diff)
downloadaports-e865d0f2e8896edaf423a6782ebea6cbd5ae5864.tar.bz2
aports-e865d0f2e8896edaf423a6782ebea6cbd5ae5864.tar.xz
testing/nginx-naxsi: update to 1.9.9
also enables --with-threads https://www.nginx.com/blog/thread-pools-boost-performance-9x/
Diffstat (limited to 'testing/nginx-naxsi/anonymise.patch')
-rw-r--r--testing/nginx-naxsi/anonymise.patch37
1 files changed, 19 insertions, 18 deletions
diff --git a/testing/nginx-naxsi/anonymise.patch b/testing/nginx-naxsi/anonymise.patch
index 4723bec97a..74841e0509 100644
--- a/testing/nginx-naxsi/anonymise.patch
+++ b/testing/nginx-naxsi/anonymise.patch
@@ -41,14 +41,14 @@
"</body>" CRLF
"</html>" CRLF
;
---- nginx-1.9.5/src/http/v2/ngx_http_v2_filter_module.c
-+++ nginx-1.9.5/src/http/v2/ngx_http_v2_filter_module.c
-@@ -212,10 +212,11 @@
+--- nginx-1.9.9/src/http/v2/ngx_http_v2_filter_module.c
++++ nginx-1.9.9/src/http/v2/ngx_http_v2_filter_module.c.new
+@@ -214,10 +214,11 @@
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
- if (r->headers_out.server == NULL) {
-+/* if (r->headers_out.server == NULL) {
++/* if (r->headers_out.server == NULL) {
len += 1 + clcf->server_tokens ? ngx_http_v2_literal_size(NGINX_VER)
: ngx_http_v2_literal_size("nginx");
}
@@ -56,20 +56,21 @@
if (r->headers_out.date == NULL) {
len += 1 + ngx_http_v2_literal_size("Wed, 31 Dec 1986 18:00:00 GMT");
-@@ -413,14 +414,14 @@
- if (r->headers_out.server == NULL) {
- *b->last++ = ngx_http_v2_inc_indexed(NGX_HTTP_V2_SERVER_INDEX);
-
-- if (clcf->server_tokens) {
-+/* if (clcf->server_tokens) {
- *b->last++ = sizeof(NGINX_VER) - 1;
- b->last = ngx_cpymem(b->last, NGINX_VER, sizeof(NGINX_VER) - 1);
-
- } else {
- *b->last++ = sizeof("nginx") - 1;
- b->last = ngx_cpymem(b->last, "nginx", sizeof("nginx") - 1);
-- }
-+ } */
+@@ -404,7 +405,7 @@
+ pos = ngx_sprintf(pos, "%03ui", r->headers_out.status);
+ }
+
+- if (r->headers_out.server == NULL) {
++/* if (r->headers_out.server == NULL) {
+ *pos++ = ngx_http_v2_inc_indexed(NGX_HTTP_V2_SERVER_INDEX);
+
+ if (clcf->server_tokens) {
+@@ -416,6 +417,7 @@
+ pos = ngx_cpymem(pos, "nginx", sizeof("nginx") - 1);
+ }
}
++*/
if (r->headers_out.date == NULL) {
+ *pos++ = ngx_http_v2_inc_indexed(NGX_HTTP_V2_DATE_INDEX);
+