From 9fc992d316ffb2773df1a1fd352602cedadce2be Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Tue, 19 Dec 2023 16:05:44 -0700 Subject: fix fallback --- Sources/swiftGopherClient/gopherRequestResponseHandler.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/swiftGopherClient/gopherRequestResponseHandler.swift b/Sources/swiftGopherClient/gopherRequestResponseHandler.swift index 8349c6e..034770d 100644 --- a/Sources/swiftGopherClient/gopherRequestResponseHandler.swift +++ b/Sources/swiftGopherClient/gopherRequestResponseHandler.swift @@ -88,7 +88,7 @@ final class GopherRequestResponseHandler: ChannelInboundHandler { "Carriage Returns: \(carriageReturnCount), Newline + Carriage Returns: \(newlineCarriageReturnCount)" ) - if carriageReturnCount == 0 { + if newlineCarriageReturnCount == 0 { for line in response.split(separator: "\n") { let lineItemType = getGopherFileType(item: "\(line.first ?? " ")") let item = createGopherItem( -- cgit v1.2.3