Software /
code /
prosody-modules
Changeset
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 | 5333:10fcfa7e62a1 |
children | 5335:53c6f49dcbb8 |
files | mod_rest/mod_rest.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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)