mod_component_http/mod_component_http.lua
changeset 2999 032589c801d7
parent 2962 13acce68a89c
--- 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);