Remove vestigial generic response code.

This commit is contained in:
Solderpunk 2020-06-01 21:23:24 +02:00
parent 79dd948a9f
commit 5fdb3622e9
1 changed files with 0 additions and 5 deletions

View File

@ -192,11 +192,6 @@ func handleGeminiRequest(conn net.Conn, config Config, logEntries chan LogEntry)
}
return
// Generic response
conn.Write([]byte("20 text/gemini\r\n"))
body := fmt.Sprintf("Molly at %s says \"Hi!\" from %s.\n", URL.Host, URL.Path)
conn.Write([]byte(body))
log.Status = 20
}
func generateDirectoryListing(path string) string {