aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/server/main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/server/main.go b/cmd/server/main.go
index fbd1530..5998fb7 100644
--- a/cmd/server/main.go
+++ b/cmd/server/main.go
@@ -229,6 +229,9 @@ func home(w http.ResponseWriter, r *http.Request) {
func fileServerHandler(fs fs.FS, next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
+ if r.URL.Path == "/favicon.ico" {
+ r.URL.Path = "/static/favicon.ico"
+ }
if !strings.HasPrefix(r.URL.Path, "/static") {
next.ServeHTTP(w, r)
return