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:
parent
c484b72fb7
commit
aefbb28875
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue