Changeset

2995:032589c801d7

mod_component_http: Fix parameter order, see Prosody trunk e2919978673e for more info
author Matthew Wild <mwild1@gmail.com>
date Wed, 04 Apr 2018 21:59:00 +0100
parents 2994:9842979f3034
children 2996:0fb95dc11bc8
files mod_component_http/mod_component_http.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);