1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 10:37:59 +01:00

Merge pull request #503 from jitsi/bugfix/4.4/bosh-connection2

Add missing stream namespace to xml declaration
This commit is contained in:
Florian Schmaus 2021-10-21 13:35:09 +02:00 committed by GitHub
commit 447c1304cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -203,7 +203,8 @@ public class XMPPBOSHConnection extends AbstractXMPPConnection {
}
try {
XmlPullParser parser = PacketParserUtils.getParserFor("<stream:stream xmlns='jabber:client'/>");
XmlPullParser parser = PacketParserUtils.getParserFor(
"<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'/>");
onStreamOpen(parser);
} catch (XmlPullParserException | IOException e) {
throw new AssertionError("Failed to setup stream environment", e);