mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
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.
This commit is contained in:
parent
e590c9c92e
commit
ecd6b31eea
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue