# HG changeset patch # User Kim Alvefur # Date 1617636078 -7200 # Node ID 7adda14945ad7ba50b6f19e746c942a49bca9c60 # Parent 8fd760c04cdf33fdebc26334f6497293eb9b36aa 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. diff -r 8fd760c04cdf -r 7adda14945ad plugins/mod_http_file_share.lua --- 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;