diff --git a/client/favicon.ico b/client/favicon.ico new file mode 100644 index 0000000..b1760ba Binary files /dev/null and b/client/favicon.ico differ diff --git a/controller.go b/controller.go index 091c15d..3a64d02 100644 --- a/controller.go +++ b/controller.go @@ -155,6 +155,9 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { fmt.Printf("%s - [%s] (%s) %s\n", time.Now().Format(time.RFC3339), r.RemoteAddr, r.Method, r.URL) switch true { + case r.Method == "GET" && r.URL.Path == "/favicon.ico": + getStaticFile("./client/favicon.ico", "image/png", w) + case r.Method == "GET" && r.URL.Path == "/": getStaticFile("./client/index.html", "text/html", w)