1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-14 00:02:05 +01:00

Add missing stream namespace to xml declaration

Fixes 7199003f98
This commit is contained in:
Ingo Bauersachs 2021-10-20 22:24:41 +02:00
parent d0be6a6216
commit d8ce2d335b

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);