# HG changeset patch # User Matthew Wild # Date 1522875540 -3600 # Node ID 032589c801d7ab42b9fc9b5de7b4d6539a3a80af # Parent 9842979f3034c935d506c4656669bf230dcaf48c mod_component_http: Fix parameter order, see Prosody trunk e2919978673e for more info diff -r 9842979f3034 -r 032589c801d7 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);