From 9a01ffcdd984eeb7f10ef4b2c88bee9d1fa5927d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Tue, 15 Nov 2011 09:48:28 +0100 Subject: [PATCH] correctly set the route attribute in BOSH connections. --- src/common/xmpp/bosh.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/common/xmpp/bosh.py b/src/common/xmpp/bosh.py index 353e798261..9bf5be7f3f 100644 --- a/src/common/xmpp/bosh.py +++ b/src/common/xmpp/bosh.py @@ -413,15 +413,15 @@ class NonBlockingBOSH(NonBlockingTransport): 'xmlns:xmpp': 'urn:xmpp:xbosh'}) else: t = BOSHBody( - attrs={ 'content': self.bosh_content, - 'hold': str(self.bosh_hold), - 'route': '%s:%s' % (self.route_host, self.route_port), - 'to': self.bosh_to, - 'wait': str(self.bosh_wait), - 'xml:lang': self.bosh_xml_lang, - 'xmpp:version': '1.0', - 'ver': '1.6', - 'xmlns:xmpp': 'urn:xmpp:xbosh'}) + attrs={ 'content': self.bosh_content, + 'hold': str(self.bosh_hold), + 'route': 'xmpp:%s:%s' % (self.route_host, self.route_port), + 'to': self.bosh_to, + 'wait': str(self.bosh_wait), + 'xml:lang': self.bosh_xml_lang, + 'xmpp:version': '1.0', + 'ver': '1.6', + 'xmlns:xmpp': 'urn:xmpp:xbosh'}) self.send_BOSH((t, True)) def start_disconnect(self): -- GitLab