summaryrefslogtreecommitdiff
path: root/www-servers/nginx/files/http_uploadprogress-nginx-1.23.0.patch
diff options
context:
space:
mode:
authorMarcin Deranek <marcin.deranek@slonko.net>2023-07-05 00:08:34 +0200
committerMarcin Deranek <marcin.deranek@slonko.net>2023-07-05 00:08:34 +0200
commit69b8a7a72af666dacd90cf627d225a64e6580763 (patch)
treed9aa8fe58fef6f074bd0b1f83d095d4703a5a433 /www-servers/nginx/files/http_uploadprogress-nginx-1.23.0.patch
parentd272278e8d6d533d8a832526a955759678f03a61 (diff)
downloadportage-69b8a7a72af666dacd90cf627d225a64e6580763.tar.gz
portage-69b8a7a72af666dacd90cf627d225a64e6580763.tar.bz2
portage-69b8a7a72af666dacd90cf627d225a64e6580763.zip
Dropping www-servers/nginx as already upstream
Diffstat (limited to 'www-servers/nginx/files/http_uploadprogress-nginx-1.23.0.patch')
-rw-r--r--www-servers/nginx/files/http_uploadprogress-nginx-1.23.0.patch74
1 files changed, 0 insertions, 74 deletions
diff --git a/www-servers/nginx/files/http_uploadprogress-nginx-1.23.0.patch b/www-servers/nginx/files/http_uploadprogress-nginx-1.23.0.patch
deleted file mode 100644
index 3635aa4..0000000
--- a/www-servers/nginx/files/http_uploadprogress-nginx-1.23.0.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-diff -pNura http-uploadprogress.orig/ngx_http_uploadprogress_module.c http-uploadprogress/ngx_http_uploadprogress_module.c
---- http-uploadprogress.orig/ngx_http_uploadprogress_module.c 2020-10-03 02:05:45.000000000 +0700
-+++ http-uploadprogress/ngx_http_uploadprogress_module.c 2022-06-24 16:24:16.196626939 +0700
-@@ -550,12 +550,12 @@ ngx_http_reportuploads_handler(ngx_http_
- ngx_chain_t out;
- ngx_int_t rc, found=0, done=0, err_status=0;
- off_t rest=0, length=0;
-- ngx_uint_t len, i;
-+ ngx_uint_t len;
- ngx_slab_pool_t *shpool;
- ngx_http_uploadprogress_conf_t *upcf;
- ngx_http_uploadprogress_ctx_t *ctx;
- ngx_http_uploadprogress_node_t *up;
-- ngx_table_elt_t *expires, *cc, **ccp;
-+ ngx_table_elt_t *expires, *cc;
- ngx_http_uploadprogress_state_t state;
- ngx_http_uploadprogress_template_t *t;
-
-@@ -628,6 +628,7 @@ ngx_http_reportuploads_handler(ngx_http_
- }
-
- r->headers_out.expires = expires;
-+ expires->next = NULL;
-
- expires->hash = 1;
- expires->key.len = sizeof("Expires") - 1;
-@@ -637,37 +638,30 @@ ngx_http_reportuploads_handler(ngx_http_
- len = sizeof("Mon, 28 Sep 1970 06:00:00 GMT");
- expires->value.len = len - 1;
-
-- ccp = r->headers_out.cache_control.elts;
-- if (ccp == NULL) {
-+ cc = r->headers_out.cache_control;
-
-- if (ngx_array_init(&r->headers_out.cache_control, r->pool,
-- 1, sizeof(ngx_table_elt_t *))
-- != NGX_OK) {
-- return NGX_HTTP_INTERNAL_SERVER_ERROR;
-- }
--
-- ccp = ngx_array_push(&r->headers_out.cache_control);
-- if (ccp == NULL) {
-- return NGX_HTTP_INTERNAL_SERVER_ERROR;
-- }
-+ if (cc == NULL) {
-
- cc = ngx_list_push(&r->headers_out.headers);
- if (cc == NULL) {
-+ expires->hash = 0;
- return NGX_HTTP_INTERNAL_SERVER_ERROR;
- }
-
-+ r->headers_out.cache_control = cc;
-+ cc->next = NULL;
-+
- cc->hash = 1;
- cc->key.len = sizeof("Cache-Control") - 1;
- cc->key.data = (u_char *) "Cache-Control";
-
-- *ccp = cc;
--
- } else {
-- for (i = 1; i < r->headers_out.cache_control.nelts; i++) {
-- ccp[i]->hash = 0;
-+ for (cc = cc->next; cc; cc = cc->next) {
-+ cc->hash = 0;
- }
-
-- cc = ccp[0];
-+ cc = r->headers_out.cache_control;
-+ cc->next = NULL;
- }
-
- expires->value.data = (u_char *) "Thu, 01 Jan 1970 00:00:01 GMT";