diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2023-12-09 17:34:26 -0700 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2023-12-09 17:34:26 -0700 |
commit | cfae29a68f8ae5e2ba5feeea24e3943e87b04a22 (patch) | |
tree | 6234e8c3c62d08d7e2c5788b71b2b71f2a023c5b /Sources/gopherHandler.swift | |
parent | 4de1822fac59b0daf9b741bbf16b386b5c83ec5e (diff) |
Fix comments not displaying on some clients
Diffstat (limited to 'Sources/gopherHandler.swift')
-rw-r--r-- | Sources/gopherHandler.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Sources/gopherHandler.swift b/Sources/gopherHandler.swift index 1961a8f..fb2c4c7 100644 --- a/Sources/gopherHandler.swift +++ b/Sources/gopherHandler.swift @@ -176,7 +176,7 @@ final class GopherHandler: ChannelInboundHandler { line = String(line.dropLast()) } if line.prefix(1) == "i" { - gopherResponse.append("\(line)\terror.host\t1\r\n") + gopherResponse.append("\(line)\t\terror.host\t1\r\n") continue } @@ -212,7 +212,7 @@ final class GopherHandler: ChannelInboundHandler { gopherResponse.append(item_line) } else { line = line.replacingOccurrences(of: "\n", with: "") - gopherResponse.append("i\(line)\terror.host\t1\r\n") + gopherResponse.append("i\(line)\t\terror.host\t1\r\n") } } } else { |