diff options
author | Marcin Deranek <marcin.deranek@slonko.net> | 2023-06-30 16:08:08 +0200 |
---|---|---|
committer | Marcin Deranek <marcin.deranek@slonko.net> | 2023-06-30 16:08:08 +0200 |
commit | cdda7e3aba7adaef12c3d598c494988820a501f1 (patch) | |
tree | 66aa1a36b88714a3a36d1f97ae7348d69a429d0b /www-servers/nginx/files/http_sticky-nginx-1.23.0.patch | |
parent | bcfe2d68926ea38816109f607789eef9b0405cb4 (diff) | |
download | portage-cdda7e3aba7adaef12c3d598c494988820a501f1.tar.gz portage-cdda7e3aba7adaef12c3d598c494988820a501f1.tar.bz2 portage-cdda7e3aba7adaef12c3d598c494988820a501f1.zip |
www-servers/nginx fork with updated lua modules
Diffstat (limited to 'www-servers/nginx/files/http_sticky-nginx-1.23.0.patch')
-rw-r--r-- | www-servers/nginx/files/http_sticky-nginx-1.23.0.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/www-servers/nginx/files/http_sticky-nginx-1.23.0.patch b/www-servers/nginx/files/http_sticky-nginx-1.23.0.patch new file mode 100644 index 0000000..da6126e --- /dev/null +++ b/www-servers/nginx/files/http_sticky-nginx-1.23.0.patch @@ -0,0 +1,25 @@ +From 105c946c0c1af93099502417784888acf60da540 Mon Sep 17 00:00:00 2001 +From: Younes El-karama <yelkarama@gmail.com> +Date: Sat, 2 Jul 2022 04:56:12 +0000 +Subject: [PATCH] make it compatible with nginx 1.23 + +--- + ngx_http_sticky_module.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ngx_http_sticky_module.c b/ngx_http_sticky_module.c +index c9a0a04..37b5bc3 100644 +--- a/ngx_http_sticky_module.c ++++ b/ngx_http_sticky_module.c +@@ -204,7 +204,7 @@ static ngx_int_t ngx_http_init_sticky_peer(ngx_http_request_t *r, ngx_http_upstr + iphp->request = r; + + /* check weather a cookie is present or not and save it */ +- if (ngx_http_parse_multi_header_lines(&r->headers_in.cookies, &iphp->sticky_conf->cookie_name, &route) != NGX_DECLINED) { ++ if (ngx_http_parse_multi_header_lines(r, r->headers_in.cookie, &iphp->sticky_conf->cookie_name, &route) != NULL) { + /* a route cookie has been found. Let's give it a try */ + ngx_log_debug(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "[sticky/init_sticky_peer] got cookie route=%V, let's try to find a matching peer", &route); + +-- +2.36.1 + |