Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marcin Mielniczuk
python-nbxmpp
Commits
f90126ec
Commit
f90126ec
authored
Jan 21, 2019
by
Philipp Hörist
Browse files
BOSH: Fix setting language on stream
parent
d85cb5e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
nbxmpp/bosh.py
View file @
f90126ec
...
...
@@ -45,7 +45,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
...
...
@@ -414,7 +413,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'
})
...
...
@@ -425,7 +424,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'
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment