[Git][gajim/python-nbxmpp][nbxmpp_0.6] BOSH: Fix setting language on stream

Philipp Hörist gitlab at dev.gajim.org
Mon Jan 21 22:39:16 CET 2019


Philipp Hörist pushed to branch nbxmpp_0.6 at gajim / python-nbxmpp


Commits:
e55aad7c by Philipp Hörist at 2019-01-21T21:39:09Z
BOSH: Fix setting language on stream

- - - - -


1 changed file:

- nbxmpp/bosh.py


Changes:

=====================================
nbxmpp/bosh.py
=====================================
@@ -44,7 +44,6 @@ class NonBlockingBOSH(NonBlockingTransport):
             idlequeue, estabilish_tls, certs, tls_version, cipher_list)
 
         self.bosh_sid = None
-        self.bosh_xml_lang = self._owner.lang
 
         self.http_version = 'HTTP/1.1'
         self.http_persistent = True
@@ -413,7 +412,7 @@ class NonBlockingBOSH(NonBlockingTransport):
             t = BOSHBody(
                     attrs={ 'to': self.bosh_to,
                             'sid': self.bosh_sid,
-                            'xml:lang': self.bosh_xml_lang,
+                            'xml:lang': self._owner.lang,
                             'xmpp:restart': 'true',
                             'secure': self.bosh_secure,
                             'xmlns:xmpp': 'urn:xmpp:xbosh'})
@@ -424,7 +423,7 @@ class NonBlockingBOSH(NonBlockingTransport):
                     '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,
+                    'xml:lang': self._owner.lang,
                     'xmpp:version': '1.0',
                     'ver': '1.6',
                     'xmlns:xmpp': 'urn:xmpp:xbosh'})



View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/e55aad7ccbce3be42f374e73f8cc83f2c678e15a

-- 
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/e55aad7ccbce3be42f374e73f8cc83f2c678e15a
You're receiving this email because of your account on dev.gajim.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gajim.org/pipermail/commits/attachments/20190121/79caeff9/attachment-0001.html>


More information about the Commits mailing list