aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-12-19 12:51:49 -0700
committerNavan Chauhan <navanchauhan@gmail.com>2023-12-19 12:51:49 -0700
commit298c3072021376723abf4f3f600eb8e092d44fc5 (patch)
tree71dd3148c448b5267f9af94d2660b85ac2dad3fe
parent18effc433e66053931cb22d2c519d96ceefc8de6 (diff)
fix to 72 character width
-rw-r--r--Sources/swift-gopher/helpers.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/Sources/swift-gopher/helpers.swift b/Sources/swift-gopher/helpers.swift
index 3c70b51..1fd2280 100644
--- a/Sources/swift-gopher/helpers.swift
+++ b/Sources/swift-gopher/helpers.swift
@@ -3,9 +3,9 @@ import Foundation
let versionString = "generated and served by swift-gopher/1.0.0" // TODO: Handle automatic versioning
func buildVersionStringResponse() -> String {
- let repeatedString = "i" + String(repeating: "-", count: 80) + "\t\terror.host\t1\r\n"
+ let repeatedString = "i" + String(repeating: "-", count: 72) + "\t\terror.host\t1\r\n"
let versionResponseString =
- "i" + String(repeating: " ", count: 80 - versionString.count) + versionString
+ "i" + String(repeating: " ", count: 72 - versionString.count) + versionString
+ "\t\terror.host\t1\r\n"
return "\(repeatedString)\(versionResponseString)"
}