diff --git a/SignalR-Swift/Transports/ServerSentEvents/ChunkBuffer.swift b/SignalR-Swift/Transports/ServerSentEvents/ChunkBuffer.swift index 3cc8e6a..25625ef 100644 --- a/SignalR-Swift/Transports/ServerSentEvents/ChunkBuffer.swift +++ b/SignalR-Swift/Transports/ServerSentEvents/ChunkBuffer.swift @@ -23,7 +23,7 @@ final class ChunkBuffer { func readLine() -> String? { var line: String? - while let endIndex = buffer.index(of: "\n") { + while let endIndex = buffer.index(of: "\n") ?? buffer.index(of: "\n\r") { let substring = buffer[..