From 04a918233e6fbd0749779d6ff90b4a43fc7d5a21 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 8 Apr 2024 16:44:11 +0200 Subject: mod_http_file_share: Fix expiry disabled check for new config API Similar to 26c30844cac6 --- plugins/mod_http_file_share.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- cgit v1.2.3