Diff

mod_rest/mod_rest.lua @ 3926:f77ae9685eb6

mod_rest: Fix routing to self-jid (thanks jonas’)
author Kim Alvefur <zash@zash.se>
date Sat, 29 Feb 2020 13:26:05 +0100
parent 3925:7dec5d096bb8
child 3929:bd687d586a8a
line wrap: on
line diff
--- 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'" });