1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 09:39:39 +02:00

[websocket] Fix getStreamFromOpenElement()

This commit is contained in:
Florian Schmaus 2021-04-01 17:39:41 +02:00
parent c484b72fb7
commit aefbb28875
2 changed files with 3 additions and 3 deletions

View file

@ -93,9 +93,9 @@ public abstract class AbstractWebSocket {
}
static String getStreamFromOpenElement(String openElement) {
String streamElement = openElement.replaceFirst("\\A<open ", "<stream ")
String streamElement = openElement.replaceFirst("\\A<open ", "<stream:stream ")
.replace("urn:ietf:params:xml:ns:xmpp-framing", "jabber:client")
.replaceFirst("/>\\s*\\z", ">");
.replaceFirst("/>\\s*\\z", " xmlns:stream='http://etherx.jabber.org/streams'>");
return streamElement;
}