diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-04-14 17:38:11 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-04-14 19:14:56 +0200 |
commit | 990113f8e745b810f91f5c8e52967d6c5d32c4df (patch) | |
tree | eb2b0590adbf3507f8c10c9fab15552aebad28e1 | |
parent | aa022204ee6f915fbc4668d5904e334b2a8f7041 (diff) | |
download | slixmpp-990113f8e745b810f91f5c8e52967d6c5d32c4df.tar.gz slixmpp-990113f8e745b810f91f5c8e52967d6c5d32c4df.tar.bz2 slixmpp-990113f8e745b810f91f5c8e52967d6c5d32c4df.tar.xz slixmpp-990113f8e745b810f91f5c8e52967d6c5d32c4df.zip |
XEP-0047: return the correct error type on not-acceptable (example 5).
-rw-r--r-- | slixmpp/plugins/xep_0047/ibb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/plugins/xep_0047/ibb.py b/slixmpp/plugins/xep_0047/ibb.py index 958d1544..cbb13de5 100644 --- a/slixmpp/plugins/xep_0047/ibb.py +++ b/slixmpp/plugins/xep_0047/ibb.py @@ -162,7 +162,7 @@ class XEP_0047(BasePlugin): raise XMPPError(etype='modify', condition='bad-request') if not self._accept_stream(iq): - raise XMPPError(etype='modify', condition='not-acceptable') + raise XMPPError(etype='cancel', condition='not-acceptable') if size > self.max_block_size: raise XMPPError('resource-constraint') |