Changeset

11503:7adda14945ad

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.
author Kim Alvefur <zash@zash.se>
date Mon, 05 Apr 2021 17:21:18 +0200
parents 11502:8fd760c04cdf
children 11504:1f700f5f62cb
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	Mon Apr 05 17:16:18 2021 +0200
+++ b/plugins/mod_http_file_share.lua	Mon Apr 05 17:21:18 2021 +0200
@@ -142,6 +142,7 @@
 
 		-- slot properties
 		slot = slot;
+		expires = expiry >= 0 and (now+expiry) or nil;
 		-- file properties
 		filename = filename;
 		filesize = filesize;