1
1
Fork 0
mirror of https://tildegit.org/solderpunk/molly-brown synced 2024-05-13 04:26:03 +02:00

Remove vestigial generic response code.

This commit is contained in:
Solderpunk 2020-06-01 21:23:24 +02:00
parent 79dd948a9f
commit 5fdb3622e9

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 {