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 {
675675 // We had packets waiting for send when we upgraded
676676 // Send them raw
677677 private func flushWaitingForPostToWebSocket( ) {
678- guard let ws = self . ws else { return }
678+ guard let ws = self . ws else { return }
679679
680680 for msg in postWait {
681- ws. writeString ( msg)
681+ ws. writeString ( fixDoubleUTF8 ( msg) )
682682 }
683683
684684 postWait. removeAll ( keepCapacity: true )
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ struct SocketPacket {
115115 type: SocketPacket . logType)
116116 }
117117 } else if let str = arg as? String {
118- restOfMessage += " \" \ (( str [ " \n " ] ~= " \\ \\ n " ) [ " \r " ] ~= " \\ \\ r " ) \" , "
118+ restOfMessage += " \" " + ( ( str [ " \n " ] ~= " \\ \\ n " ) [ " \r " ] ~= " \\ \\ r " ) + " \" , "
119119 } else if arg is NSNull {
120120 restOfMessage += " null, "
121121 } else {
You can’t perform that action at this time.
0 commit comments