aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-12-09 15:31:00 -0700
committerNavan Chauhan <navanchauhan@gmail.com>2023-12-09 15:31:00 -0700
commit3d4d8ff25b4ef0b2c162528ece906fd463d170e4 (patch)
treeefb47f51de7f1f40dcf2c6fa8d1abd16025d6a5a
parente57765f40e93be5a69be3b6ce17f679985c4e493 (diff)
add error.host to i
-rw-r--r--Sources/gopherHandler.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/Sources/gopherHandler.swift b/Sources/gopherHandler.swift
index 2d369bf..ffe2ada 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)\r\n")
+ gopherResponse.append("\(line)\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)\r\n")
+ gopherResponse.append("i\(line)\terror.host\t1\r\n")
}
}
} else {