Mercurial > prosody-modules
changeset 4449:c25eef56e9c9
mod_muc_http_defaults: Fix order of http callback arguments
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 19 Feb 2021 20:36:11 +0100 (2021-02-19) |
parents | 5879ca1f7853 |
children | 5f27bda5de80 |
files | mod_muc_http_defaults/mod_muc_http_defaults.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_muc_http_defaults/mod_muc_http_defaults.lua Fri Feb 19 19:50:21 2021 +0100 +++ b/mod_muc_http_defaults/mod_muc_http_defaults.lua Fri Feb 19 20:36:11 2021 +0100 @@ -116,7 +116,7 @@ local wait, done = async.waiter(); local ret, err; - http.request(url, ex, function (code, body) + http.request(url, ex, function (body, code) if math.floor(code / 100) == 2 then local parsed, parse_err = json.decode(body); if not parsed then