# HG changeset patch # User Kim Alvefur # Date 1582979165 -3600 # Node ID f77ae9685eb6c80b88b0fe85bcf5109f6b263a0c # Parent 7dec5d096bb8b5cd6f16c585761df0fd09ee9ab5 mod_rest: Fix routing to self-jid (thanks jonas’) diff -r 7dec5d096bb8 -r f77ae9685eb6 mod_rest/mod_rest.lua --- 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'" });