XEP-0047: return the correct error type on not-acceptable (example 5).
This commit is contained in:
parent
aa022204ee
commit
990113f8e7
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue