XEP-0047: return the correct error type on not-acceptable (example 5).
This commit is contained in:
parent
aa022204ee
commit
990113f8e7
@ -162,7 +162,7 @@ class XEP_0047(BasePlugin):
|
|||||||
raise XMPPError(etype='modify', condition='bad-request')
|
raise XMPPError(etype='modify', condition='bad-request')
|
||||||
|
|
||||||
if not self._accept_stream(iq):
|
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:
|
if size > self.max_block_size:
|
||||||
raise XMPPError('resource-constraint')
|
raise XMPPError('resource-constraint')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user