author | Kim Alvefur <zash@zash.se> |
Fri, 19 Feb 2021 20:36:11 +0100 | |
changeset 4453 | c25eef56e9c9 |
parent 4452 | 5879ca1f7853 |
child 4454 | 5f27bda5de80 |
--- 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