diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2011-11-15 12:48:28 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2011-11-15 12:48:28 +0400 |
commit | 9a01ffcdd984eeb7f10ef4b2c88bee9d1fa5927d (patch) | |
tree | 581423f020d5163fc544296c254ed450d58aaf72 /src/common/xmpp | |
parent | 3c294252f0fbbc33a9f672b1476f0095e3ab92f8 (diff) |
correctly set the route attribute in BOSH connections.
Diffstat (limited to 'src/common/xmpp')
-rw-r--r-- | src/common/xmpp/bosh.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/common/xmpp/bosh.py b/src/common/xmpp/bosh.py index 353e79826..9bf5be7f3 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): |