diff --git a/controllers/route.go b/controllers/route.go index a5682318..d4ee13d2 100644 --- a/controllers/route.go +++ b/controllers/route.go @@ -272,9 +272,9 @@ func PhishHandler(w http.ResponseWriter, r *http.Request) { w.Write(htmlBuff.Bytes()) } -// Prevents search engines, etc. from indexing phishing materials +// RobotsHandler prevents search engines, etc. from indexing phishing materials func RobotsHandler(w http.ResponseWriter, r *http.Request) { - w.Write(([]byte)("User-agent: *\nDisallow: /\n")) + fmt.Fprintln(w, "User-agent: *\nDisallow: /") } // Use allows us to stack middleware to process the request