diff options
author | Ben Morrison <ben@gbmor.dev> | 2020-05-07 01:39:41 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2020-05-07 01:39:41 -0400 |
commit | f9b16cd6aba68afc782ec7e5ac7075e134135512 (patch) | |
tree | 7ef1f808998f1608db0a8e349923e836d3e78b23 | |
parent | 248a157779d3ef8199a53b246a33e3040fdca3ce (diff) | |
download | api-f9b16cd6aba68afc782ec7e5ac7075e134135512.tar.gz |
404 for favicon.ico
-rw-r--r-- | main.go | 3 |
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", |