correctly set the route attribute in BOSH connections.

This commit is contained in:
Yann Leboulanger 2011-11-15 09:48:28 +01:00
parent 3c294252f0
commit 9a01ffcdd9

View file

@ -415,7 +415,7 @@ class NonBlockingBOSH(NonBlockingTransport):
t = BOSHBody(
attrs={ 'content': self.bosh_content,
'hold': str(self.bosh_hold),
'route': '%s:%s' % (self.route_host, self.route_port),
'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,