Mercurial > prosody-modules
changeset 4532:183c2abdc3c4
mod_rest: Fix name of entry in error registry for unauth 'from'
Wow was this a pain to track down or what?
Symptoms: An error with condition: undefined-condition. No further details.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 23 Mar 2021 23:41:10 +0100 |
parents | 60fe204b980f |
children | 578375759510 |
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 Tue Mar 23 23:19:38 2021 +0100 +++ b/mod_rest/mod_rest.lua Tue Mar 23 23:41:10 2021 +0100 @@ -207,7 +207,7 @@ name = { code = 422, condition = "unsupported-stanza-type", text = "Invalid stanza, must be 'message', 'presence' or 'iq'.", }, to = { code = 422, condition = "improper-addressing", text = "Invalid destination JID", }, from = { code = 422, condition = "invalid-from", text = "Invalid source JID", }, - post_auth = { code = 403, condition = "not-authorized", text = "Not authorized to send stanza with requested 'from'", }, + from_auth = { code = 403, condition = "not-authorized", text = "Not authorized to send stanza with requested 'from'", }, iq_type = { code = 422, condition = "invalid-xml", text = "'iq' stanza must be of type 'get' or 'set'", }, iq_tags = { code = 422, condition = "bad-format", text = "'iq' stanza must have exactly one child tag", }, mediatype = { code = 415, condition = "bad-format", text = "Unsupported media type" },