mod_http_file_share: Put 'expires' back, thought it was unused
authorKim Alvefur <zash@zash.se>
Sun, 02 Jul 2023 14:31:00 +0200
changeset 13180 0d1cd3185299
parent 13179 bbdaa770b955
child 13183 1b1ed555f307
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
--- a/plugins/mod_http_file_share.lua	Fri Jun 30 22:01:55 2023 +0200
+++ b/plugins/mod_http_file_share.lua	Sun Jul 02 14:31:00 2023 +0200
@@ -182,6 +182,7 @@
 
 		-- slot properties
 		slot = slot;
+		expires = expiry >= 0 and (os.time()+expiry) or nil;
 		-- file properties
 		filename = filename;
 		filesize = filesize;