From 5fdb3622e931ed8b18f774d080686e6e080e27e6 Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Mon, 1 Jun 2020 21:23:24 +0200 Subject: [PATCH] Remove vestigial generic response code. --- handler.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/handler.go b/handler.go index 54f90ca..9b98527 100644 --- a/handler.go +++ b/handler.go @@ -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 {