diff options
author | Kim Alvefur <zash@zash.se> | 2024-04-08 16:44:11 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2024-04-08 16:44:11 +0200 |
commit | 04a918233e6fbd0749779d6ff90b4a43fc7d5a21 (patch) | |
tree | 06b488baefecb9574686de9552a568d8df91cf23 /plugins | |
parent | a4f4acaa55c5581d2c8166a64a56bb871736b3d9 (diff) | |
download | prosody-04a918233e6fbd0749779d6ff90b4a43fc7d5a21.tar.gz prosody-04a918233e6fbd0749779d6ff90b4a43fc7d5a21.zip |
mod_http_file_share: Fix expiry disabled check for new config API
Similar to 26c30844cac6
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_http_file_share.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_http_file_share.lua b/plugins/mod_http_file_share.lua index 718b4d71..cfc647d4 100644 --- a/plugins/mod_http_file_share.lua +++ b/plugins/mod_http_file_share.lua @@ -452,7 +452,7 @@ function handle_download(event, path) -- GET /uploads/:slot+filename 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"; |