diff mod_rest/mod_rest.lua @ 5334:3c51eab0afe8

mod_rest: Get correct type from config Autocomplete?
author Kim Alvefur <zash@zash.se>
date Sat, 08 Apr 2023 19:51:24 +0200
parents e0b5468aae49
children d7667d9ad96a
line wrap: on
line diff
--- a/mod_rest/mod_rest.lua	Fri Apr 07 21:10:14 2023 +0200
+++ b/mod_rest/mod_rest.lua	Sat Apr 08 19:51:24 2023 +0200
@@ -391,7 +391,7 @@
 		end
 
 		local iq_timeout = tonumber(request.headers.prosody_rest_timeout) or module:get_option_number("rest_iq_timeout", 60*2);
-		iq_timeout = math.min(iq_timeout, module:get_option_boolean("rest_iq_max_timeout", 300));
+		iq_timeout = math.min(iq_timeout, module:get_option_number("rest_iq_max_timeout", 300));
 
 		local p = module:send_iq(payload, origin, iq_timeout):next(
 			function (result)