Mercurial > prosody-hg
diff plugins/mod_http_file_share.lua @ 13478:fe7557cf31a6
mod_http_file_share: Fix expiry disabled check for new config API
Similar to 26c30844cac6
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 08 Apr 2024 16:44:11 +0200 |
| parents | 11e66ad894f0 |
| children | 7f05254fb042 |
line wrap: on
line diff
--- a/plugins/mod_http_file_share.lua Mon Apr 08 09:29:58 2024 +0200 +++ b/plugins/mod_http_file_share.lua Mon Apr 08 16:44:11 2024 +0200 @@ -452,7 +452,7 @@ return response:send_file(handle); end -if expiry >= 0 and not external_base_url then +if expiry < math.huge and not external_base_url then -- TODO HTTP DELETE to the external endpoint? local array = require "prosody.util.array"; local async = require "prosody.util.async";
