about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2020-05-07 01:39:41 -0400
committerBen Morrison <ben@gbmor.dev>2020-05-07 01:39:41 -0400
commitf9b16cd6aba68afc782ec7e5ac7075e134135512 (patch)
tree7ef1f808998f1608db0a8e349923e836d3e78b23
parent248a157779d3ef8199a53b246a33e3040fdca3ce (diff)
downloadapi-f9b16cd6aba68afc782ec7e5ac7075e134135512.tar.gz
404 for favicon.ico
-rw-r--r--main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.go b/main.go
index d8ca245..c71cb3b 100644
--- a/main.go
+++ b/main.go
@@ -24,6 +24,9 @@ func main() {
 
 	mux := http.NewServeMux()
 	mux.HandleFunc("/", validateRequest)
+	mux.HandleFunc("/favicon.ico", func(w http.ResponseWriter, r *http.Request) {
+		http.Error(w, "404 Not Found", http.StatusNotFound)
+	})
 
 	server := &http.Server{
 		Addr:         ":9999",