From ecd6b31eea9a7e49e4da6b5d0cb4d39d573e3dad Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 5 Apr 2021 17:21:18 +0200 Subject: mod_http_file_share: Include expiry time of the upload itself in token Lets an external upload service know this so it can do expiry itself. Could possibly have been calculated based on the token expiry or issuance time, explicit > implicit. --- plugins/mod_http_file_share.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_http_file_share.lua') diff --git a/plugins/mod_http_file_share.lua b/plugins/mod_http_file_share.lua index 9e542dff..0ef6f856 100644 --- a/plugins/mod_http_file_share.lua +++ b/plugins/mod_http_file_share.lua @@ -142,6 +142,7 @@ local now = os.time(); -- slot properties slot = slot; + expires = expiry >= 0 and (now+expiry) or nil; -- file properties filename = filename; filesize = filesize; -- cgit v1.2.3