diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2023-12-19 16:05:44 -0700 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2023-12-19 16:05:44 -0700 |
commit | 9fc992d316ffb2773df1a1fd352602cedadce2be (patch) | |
tree | bbd6ab3dd626505719a13a47e3ccbdb0d47c18a6 /Sources/swiftGopherClient | |
parent | d620e27eea7974b74117f77e556d0bf0062c842d (diff) |
fix fallback
Diffstat (limited to 'Sources/swiftGopherClient')
-rw-r--r-- | Sources/swiftGopherClient/gopherRequestResponseHandler.swift | 2 |
1 files changed, 1 insertions, 1 deletions
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( |