summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0332/http.py
diff options
context:
space:
mode:
authorSangeeth Saravanaraj <sangeeth@riptideio.com>2015-05-01 15:34:53 +0530
committerSangeeth Saravanaraj <sangeeth@riptideio.com>2015-05-01 15:34:53 +0530
commit1345b7c1d0b3c121471034521e9028cd43569cb7 (patch)
tree8f8cc46e058dda0294d060c94b1b8b98f4725b18 /sleekxmpp/plugins/xep_0332/http.py
parentd60a652259c74aaea4a250c542ce5ceaeb81f177 (diff)
downloadslixmpp-1345b7c1d0b3c121471034521e9028cd43569cb7.tar.gz
slixmpp-1345b7c1d0b3c121471034521e9028cd43569cb7.tar.bz2
slixmpp-1345b7c1d0b3c121471034521e9028cd43569cb7.tar.xz
slixmpp-1345b7c1d0b3c121471034521e9028cd43569cb7.zip
Misc updates for send_error()
Diffstat (limited to 'sleekxmpp/plugins/xep_0332/http.py')
-rw-r--r--sleekxmpp/plugins/xep_0332/http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/plugins/xep_0332/http.py b/sleekxmpp/plugins/xep_0332/http.py
index 5c1cfc0d..03d88b65 100644
--- a/sleekxmpp/plugins/xep_0332/http.py
+++ b/sleekxmpp/plugins/xep_0332/http.py
@@ -136,12 +136,12 @@ class XEP_0332(BasePlugin):
timeout_callback=kwargs.get('timeout_callback', None)
)
- def send_error(self, to=None, ecode=500, etype='wait',
+ def send_error(self, to=None, ecode='500', etype='wait',
econd='internal-server-error', **kwargs):
iq = self.xmpp.Iq()
- iq['type'] = 'error'
iq['from'] = self.xmpp.boundjid
iq['to'] = to
+ iq['type'] = 'error'
iq['error']['code'] = ecode
iq['error']['type'] = etype
iq['error']['condition'] = econd