# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1712587451 -7200
# Node ID fe7557cf31a696bd12af0eb6b7203699ae85964f
# Parent  e8ac3ce3238e5570230f0763b8ee542fc57d5704
mod_http_file_share: Fix expiry disabled check for new config API

Similar to 26c30844cac6

diff -r e8ac3ce3238e -r fe7557cf31a6 plugins/mod_http_file_share.lua
--- 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";