Changeset

13176:0d1cd3185299

mod_http_file_share: Put 'expires' back, thought it was unused Removed in 536055476912 because it was not used anywhere else in the file, but per the documentation it is meant to inform external upload services of the expiry time of the upload itself.
author Kim Alvefur <zash@zash.se>
date Sun, 02 Jul 2023 14:31:00 +0200
parents 13175:bbdaa770b955
children 13179:1b1ed555f307
files plugins/mod_http_file_share.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_http_file_share.lua	Fri Jun 30 22:01:55 2023 +0200
+++ b/plugins/mod_http_file_share.lua	Sun Jul 02 14:31:00 2023 +0200
@@ -182,6 +182,7 @@
 
 		-- slot properties
 		slot = slot;
+		expires = expiry >= 0 and (os.time()+expiry) or nil;
 		-- file properties
 		filename = filename;
 		filesize = filesize;