From a3ec2fada708ede93b0f157bbd9dab5126bf8778 Mon Sep 17 00:00:00 2001 From: Acid Date: Tue, 26 May 2026 15:59:06 -0400 Subject: [PATCH] modified: main.go --- main.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/main.go b/main.go index ce61e4f..1c169ce 100644 --- a/main.go +++ b/main.go @@ -68,13 +68,7 @@ func handleRoot(w http.ResponseWriter, r *http.Request) { } func serveRobots(w http.ResponseWriter, r *http.Request) { - robots, err := os.ReadFile("templates/robots.txt") - if err != nil { - fmt.Fprintf(w, "sucks to suck") - return - } - - fmt.Fprint(w, string(robots)) + http.ServeFile(w, r, ("templates/robots.txt")) } func callApi(ip string) (ipResponse, error) {