aports/main/nginx/mod_zip~consistent-timestamp.patch
2024-11-17 21:36:13 +00:00

23 lines
782 B
Diff

Patch-Source: https://github.com/evanmiller/mod_zip/pull/112
--
From d963b6d36b46f6650a7cea2c2797ed358b7bf746 Mon Sep 17 00:00:00 2001
From: nanaya <me@nanaya.net>
Date: Thu, 22 Feb 2024 03:37:18 +0900
Subject: [PATCH] Use consistent timestamp
---
ngx_http_zip_file.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/ngx_http_zip_file.c b/ngx_http_zip_file.c
index ce47c0e..4274615 100644
--- a/ngx_http_zip_file.c
+++ b/ngx_http_zip_file.c
@@ -306,7 +306,6 @@ ngx_http_zip_generate_pieces(ngx_http_request_t *r, ngx_http_zip_ctx_t *ctx)
return NGX_ERROR;
ctx->cd_size = 0;
- unix_time = time(NULL);
dos_time = ngx_dos_time(unix_time);
for (piece_i = i = 0; i < ctx->files.nelts; i++) {
file = &((ngx_http_zip_file_t *)ctx->files.elts)[i];