mod_component_http: Fix parameter order, see Prosody trunk e2919978673e for more info
authorMatthew Wild <mwild1@gmail.com>
Wed, 04 Apr 2018 21:59:00 +0100
changeset 2999 032589c801d7
parent 2998 9842979f3034
child 3000 0fb95dc11bc8
mod_component_http: Fix parameter order, see Prosody trunk e2919978673e for more info
mod_component_http/mod_component_http.lua
--- a/mod_component_http/mod_component_http.lua	Wed Apr 04 16:43:35 2018 +0200
+++ b/mod_component_http/mod_component_http.lua	Wed Apr 04 21:59:00 2018 +0100
@@ -42,7 +42,7 @@
 	});
 	http.request(url, {
 		body = request_body;
-	}, function (response_text, code, _, response)
+	}, function (response_text, code, response)
 		if stanza.attr.type == "error" then return; end -- Avoid error loops, don't reply to error stanzas
 		if code == 200 and response_text and response.headers["content-type"] == "application/json" then
 			local response_data = json.decode(response_text);