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

Commits:

1 changed file:

Changes:

  • nbxmpp/bosh.py
    ... ... @@ -44,7 +44,6 @@ class NonBlockingBOSH(NonBlockingTransport):
    44 44
                 idlequeue, estabilish_tls, certs, tls_version, cipher_list)
    
    45 45
     
    
    46 46
             self.bosh_sid = None
    
    47
    -        self.bosh_xml_lang = self._owner.lang
    
    48 47
     
    
    49 48
             self.http_version = 'HTTP/1.1'
    
    50 49
             self.http_persistent = True
    
    ... ... @@ -413,7 +412,7 @@ class NonBlockingBOSH(NonBlockingTransport):
    413 412
                 t = BOSHBody(
    
    414 413
                         attrs={ 'to': self.bosh_to,
    
    415 414
                                 'sid': self.bosh_sid,
    
    416
    -                            'xml:lang': self.bosh_xml_lang,
    
    415
    +                            'xml:lang': self._owner.lang,
    
    417 416
                                 'xmpp:restart': 'true',
    
    418 417
                                 'secure': self.bosh_secure,
    
    419 418
                                 'xmlns:xmpp': 'urn:xmpp:xbosh'})
    
    ... ... @@ -424,7 +423,7 @@ class NonBlockingBOSH(NonBlockingTransport):
    424 423
                         'route': 'xmpp:%s:%s' % (self.route_host, self.route_port),
    
    425 424
                         'to': self.bosh_to,
    
    426 425
                         'wait': str(self.bosh_wait),
    
    427
    -                    'xml:lang': self.bosh_xml_lang,
    
    426
    +                    'xml:lang': self._owner.lang,
    
    428 427
                         'xmpp:version': '1.0',
    
    429 428
                         'ver': '1.6',
    
    430 429
                         'xmlns:xmpp': 'urn:xmpp:xbosh'})