aboutsummaryrefslogtreecommitdiff
path: root/Sources
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-12-19 16:05:44 -0700
committerNavan Chauhan <navanchauhan@gmail.com>2023-12-19 16:05:44 -0700
commit9fc992d316ffb2773df1a1fd352602cedadce2be (patch)
treebbd6ab3dd626505719a13a47e3ccbdb0d47c18a6 /Sources
parentd620e27eea7974b74117f77e556d0bf0062c842d (diff)
fix fallback
Diffstat (limited to 'Sources')
-rw-r--r--Sources/swiftGopherClient/gopherRequestResponseHandler.swift2
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(