From 4e6ccdad9644b346172681e42c9a211f32e1ec35 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 2 Jul 2023 14:31:00 +0200 Subject: 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. --- plugins/mod_http_file_share.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') diff --git a/plugins/mod_http_file_share.lua b/plugins/mod_http_file_share.lua index d5f3a058..f9f227cd 100644 --- a/plugins/mod_http_file_share.lua +++ b/plugins/mod_http_file_share.lua @@ -182,6 +182,7 @@ function get_authz(slot, uploader, filename, filesize, filetype) -- slot properties slot = slot; + expires = expiry >= 0 and (os.time()+expiry) or nil; -- file properties filename = filename; filesize = filesize; -- cgit v1.2.3