File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -675,10 +675,10 @@ extension SocketEngine {
675
675
// We had packets waiting for send when we upgraded
676
676
// Send them raw
677
677
private func flushWaitingForPostToWebSocket( ) {
678
- guard let ws = self . ws else { return }
678
+ guard let ws = self . ws else { return }
679
679
680
680
for msg in postWait {
681
- ws. writeString ( msg)
681
+ ws. writeString ( fixDoubleUTF8 ( msg) )
682
682
}
683
683
684
684
postWait. removeAll ( keepCapacity: true )
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ struct SocketPacket {
115
115
type: SocketPacket . logType)
116
116
}
117
117
} else if let str = arg as? String {
118
- restOfMessage += " \" \ (( str [ " \n " ] ~= " \\ \\ n " ) [ " \r " ] ~= " \\ \\ r " ) \" , "
118
+ restOfMessage += " \" " + ( ( str [ " \n " ] ~= " \\ \\ n " ) [ " \r " ] ~= " \\ \\ r " ) + " \" , "
119
119
} else if arg is NSNull {
120
120
restOfMessage += " null, "
121
121
} else {
You can’t perform that action at this time.
0 commit comments