From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 484BA158095 for ; Tue, 19 Jul 2022 17:10:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E960FE0C17; Tue, 19 Jul 2022 17:10:31 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C1C0CE0C17 for ; Tue, 19 Jul 2022 17:10:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C70443409E6 for ; Tue, 19 Jul 2022 17:10:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E1FCB549 for ; Tue, 19 Jul 2022 17:10:27 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1658250570.2fa824955dfb482b3abcc3f499d820d476a1013c.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/nginx/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-servers/nginx/files/http_headers_more-nginx-1.23.0.patch X-VCS-Directories: www-servers/nginx/files/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: 2fa824955dfb482b3abcc3f499d820d476a1013c X-VCS-Branch: master Date: Tue, 19 Jul 2022 17:10:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a0f6daca-86ca-4cab-9696-94f436eeac4a X-Archives-Hash: 98a4f7322be236975fadf6b3e10c14c5 commit: 2fa824955dfb482b3abcc3f499d820d476a1013c Author: Michael Mair-Keimberger levelnine at> AuthorDate: Tue Jul 19 15:33:41 2022 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Tue Jul 19 17:09:30 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2fa82495 www-servers/nginx: remove unused patch Signed-off-by: Michael Mair-Keimberger levelnine.at> Portage 3.0.32 / pkgdev 0.2.1 / pkgcheck 0.10.11 Closes: https://github.com/gentoo/gentoo/pull/26482 Signed-off-by: Conrad Kostecki gentoo.org> .../files/http_headers_more-nginx-1.23.0.patch | 187 --------------------- 1 file changed, 187 deletions(-) diff --git a/www-servers/nginx/files/http_headers_more-nginx-1.23.0.patch b/www-servers/nginx/files/http_headers_more-nginx-1.23.0.patch deleted file mode 100644 index 4c06315323f3..000000000000 --- a/www-servers/nginx/files/http_headers_more-nginx-1.23.0.patch +++ /dev/null @@ -1,187 +0,0 @@ -diff --git a/src/ngx_http_headers_more_headers_in.c b/src/ngx_http_headers_more_headers_in.c -index c3eb8f7..84c7525 100644 ---- a/src/ngx_http_headers_more_headers_in.c -+++ b/src/ngx_http_headers_more_headers_in.c -@@ -158,9 +158,15 @@ static ngx_http_headers_more_set_header_t ngx_http_headers_more_set_handlers[] - ngx_http_set_builtin_header }, - #endif - -+#if defined(nginx_version) && nginx_version >= 1023000 -+ { ngx_string("Cookie"), -+ offsetof(ngx_http_headers_in_t, cookie), -+ ngx_http_set_builtin_multi_header }, -+#else - { ngx_string("Cookie"), - offsetof(ngx_http_headers_in_t, cookies), - ngx_http_set_builtin_multi_header }, -+#endif - - { ngx_null_string, 0, ngx_http_set_header } - }; -diff --git a/.travis.yml b/.travis.yml -index 9748a99..bf40b31 100644 ---- a/.travis.yml -+++ b/.travis.yml -@@ -23,6 +23,7 @@ env: - matrix: - - NGINX_VERSION=1.19.3 - - NGINX_VERSION=1.19.9 -+ - NGINX_VERSION=1.23.0 - - before_install: - - sudo apt-get update -y -@@ -51,3 +52,4 @@ script: - - export NGX_BUILD_CC=$CC - - sh util/build.sh $NGINX_VERSION > build.log 2>&1 || (cat build.log && exit 1) - - prove -I. -r t -+ -diff --git a/src/ngx_http_headers_more_headers_in.c b/src/ngx_http_headers_more_headers_in.c -index 84c7525..11447ce 100644 ---- a/src/ngx_http_headers_more_headers_in.c -+++ b/src/ngx_http_headers_more_headers_in.c -@@ -758,6 +758,50 @@ static ngx_int_t - ngx_http_set_builtin_multi_header(ngx_http_request_t *r, - ngx_http_headers_more_header_val_t *hv, ngx_str_t *value) - { -+#if defined(nginx_version) && nginx_version >= 1023000 -+ ngx_table_elt_t **headers, **ph, *h; -+ int nelts; -+ -+ if (r->headers_out.status == 400 || r->headers_in.headers.last == NULL) { -+ /* must be a 400 Bad Request */ -+ return NGX_OK; -+ } -+ -+ headers = (ngx_table_elt_t **) ((char *) &r->headers_in + hv->offset); -+ -+ if (*headers) { -+ nelts = 0; -+ for (h = *headers; h; h = h->next) { -+ nelts++; -+ } -+ -+ *headers = NULL; -+ -+ dd("clear multi-value headers: %d", nelts); -+ } -+ -+ if (ngx_http_set_header_helper(r, hv, value, &h) == NGX_ERROR) { -+ return NGX_ERROR; -+ } -+ -+ if (value->len == 0) { -+ return NGX_OK; -+ } -+ -+ dd("new multi-value header: %p", h); -+ -+ if (*headers) { -+ for (ph = headers; *ph; ph = &(*ph)->next) { /* void */ } -+ *ph = h; -+ -+ } else { -+ *headers = h; -+ } -+ -+ h->next = NULL; -+ -+ return NGX_OK; -+#else - ngx_array_t *headers; - ngx_table_elt_t **v, *h; - -@@ -810,6 +854,7 @@ ngx_http_set_builtin_multi_header(ngx_http_request_t *r, - - *v = h; - return NGX_OK; -+#endif - } - - -@@ -842,6 +887,7 @@ ngx_http_headers_more_validate_host(ngx_str_t *host, ngx_pool_t *pool, - if (dot_pos == i - 1) { - return NGX_DECLINED; - } -+ - dot_pos = i; - break; - -diff --git a/src/ngx_http_headers_more_headers_out.c b/src/ngx_http_headers_more_headers_out.c -index 0f9bc87..9d58ede 100644 ---- a/src/ngx_http_headers_more_headers_out.c -+++ b/src/ngx_http_headers_more_headers_out.c -@@ -327,6 +327,46 @@ static ngx_int_t - ngx_http_set_builtin_multi_header(ngx_http_request_t *r, - ngx_http_headers_more_header_val_t *hv, ngx_str_t *value) - { -+#if defined(nginx_version) && nginx_version >= 1023000 -+ ngx_table_elt_t **headers, *h, *ho, **ph; -+ -+ headers = (ngx_table_elt_t **) ((char *) &r->headers_out + hv->offset); -+ -+ if (*headers) { -+ for (h = (*headers)->next; h; h = h->next) { -+ h->hash = 0; -+ h->value.len = 0; -+ } -+ -+ h = *headers; -+ -+ h->value = *value; -+ -+ if (value->len == 0) { -+ h->hash = 0; -+ -+ } else { -+ h->hash = hv->hash; -+ } -+ -+ return NGX_OK; -+ } -+ -+ for (ph = headers; *ph; ph = &(*ph)->next) { /* void */ } -+ -+ ho = ngx_list_push(&r->headers_out.headers); -+ if (ho == NULL) { -+ return NGX_ERROR; -+ } -+ -+ ho->value = *value; -+ ho->hash = hv->hash; -+ ngx_str_set(&ho->key, "Cache-Control"); -+ ho->next = NULL; -+ *ph = ho; -+ -+ return NGX_OK; -+#else - ngx_array_t *pa; - ngx_table_elt_t *ho, **ph; - ngx_uint_t i; -@@ -378,6 +418,7 @@ ngx_http_set_builtin_multi_header(ngx_http_request_t *r, - *ph = ho; - - return NGX_OK; -+#endif - } - - -diff --git a/src/ngx_http_headers_more_util.c b/src/ngx_http_headers_more_util.c -index caf372e..e1f3636 100644 ---- a/src/ngx_http_headers_more_util.c -+++ b/src/ngx_http_headers_more_util.c -@@ -295,6 +295,7 @@ ngx_http_headers_more_rm_header_helper(ngx_list_t *l, ngx_list_part_t *cur, - if (part->next == NULL) { - return NGX_ERROR; - } -+ - part = part->next; - } - -@@ -338,6 +339,7 @@ ngx_http_headers_more_rm_header_helper(ngx_list_t *l, ngx_list_part_t *cur, - if (part->next == NULL) { - return NGX_ERROR; - } -+ - part = part->next; - } -