Mercurial > prosody-hg
diff plugins/mod_http_file_share.lua @ 13230:26c30844cac6
plugins: Handle how get_option_period returns "never"
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 21 Jul 2023 17:23:00 +0200 |
| parents | 50324f66ca2a |
| children | 9097149923ae |
line wrap: on
line diff
--- a/plugins/mod_http_file_share.lua Tue Jul 18 12:38:16 2023 +0200 +++ b/plugins/mod_http_file_share.lua Fri Jul 21 17:23:00 2023 +0200 @@ -176,7 +176,7 @@ -- slot properties slot = slot; - expires = expiry >= 0 and (os.time()+expiry) or nil; + expires = expiry < math.huge and (os.time()+expiry) or nil; -- file properties filename = filename; filesize = filesize;
