From 8b0242419d79b78b2ab5e9eadefa189f41358200 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Thu, 12 Oct 2023 22:04:18 -0500 Subject: [PATCH] Add 404 for nonexistent pages --- minecraft-site.go | 1 + 1 file changed, 1 insertion(+) diff --git a/minecraft-site.go b/minecraft-site.go index b422606..0d03fd8 100644 --- a/minecraft-site.go +++ b/minecraft-site.go @@ -75,6 +75,7 @@ func main() { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { if r.URL.Path != "/" { http.NotFound(w, r) + return } // Update servers with current data