--- a/mod_rest/mod_rest.lua Fri Feb 28 22:40:53 2020 +0100
+++ b/mod_rest/mod_rest.lua Sat Feb 29 13:26:05 2020 +0100
@@ -161,7 +161,7 @@
local send_type = decide_type((request.headers.accept or "") ..",".. request.headers.content_type)
if payload.name == "iq" then
function origin.send(stanza)
- prosody.core_route_stanza(nil, stanza);
+ module:send(stanza);
end
if payload.attr.type ~= "get" and payload.attr.type ~= "set" then
return errors.new({ code = 422, text = "'iq' stanza must be of type 'get' or 'set'" });