aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2024-04-08 16:44:11 +0200
committerKim Alvefur <zash@zash.se>2024-04-08 16:44:11 +0200
commit04a918233e6fbd0749779d6ff90b4a43fc7d5a21 (patch)
tree06b488baefecb9574686de9552a568d8df91cf23
parenta4f4acaa55c5581d2c8166a64a56bb871736b3d9 (diff)
downloadprosody-04a918233e6fbd0749779d6ff90b4a43fc7d5a21.tar.gz
prosody-04a918233e6fbd0749779d6ff90b4a43fc7d5a21.zip
mod_http_file_share: Fix expiry disabled check for new config API
Similar to 26c30844cac6
-rw-r--r--plugins/mod_http_file_share.lua2
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";