diff --git a/pkg/app/app.go b/pkg/app/app.go index 0a3bfed..4288419 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -61,9 +61,13 @@ func (h *App) ServeHTTP(w http.ResponseWriter, r *http.Request) { requestPath := r.URL.Path var head string head, r.URL.Path = shiftPath(r.URL.Path) - if head == "static" { + switch head { + case "static": h.fileHandler.ServeHTTP(w, r) - } else { + case "favicon.ico": + r.URL.Path = requestPath + h.fileHandler.ServeHTTP(w, r) + default: conn, err := h.db.Acquire(r.Context()) if err != nil { panic(err) diff --git a/web/static/favicon.ico b/web/static/favicon.ico new file mode 100644 index 0000000..962330a Binary files /dev/null and b/web/static/favicon.ico differ