Software /
code /
prosody-modules
Changeset
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 |
parents | 3925:7dec5d096bb8 |
children | 3927:4c1f80076606 |
files | mod_rest/mod_rest.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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'" });