# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1688301060 -7200
# Node ID 0d1cd3185299d20be1ba0c3bc71aa540980ba46d
# Parent  bbdaa770b955d4f5e8c704239307b9341f22d5f7
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.

diff -r bbdaa770b955 -r 0d1cd3185299 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;