Diff

mod_muc_http_defaults/mod_muc_http_defaults.lua @ 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
parent 4448:5879ca1f7853
child 4450:5f27bda5de80
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