From ded10477a8b89546d411c1b4dd5fc7cc0e9287ce Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Wed, 26 Sep 2018 11:44:42 +0200 Subject: [PATCH] Serve favicon on internal interface to avoid expensive calls to index --- server/internal.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/internal.go b/server/internal.go index a20eda1a..5e12dcf1 100644 --- a/server/internal.go +++ b/server/internal.go @@ -51,6 +51,7 @@ func NewInternalServer(binding, certFiles string, db *db.RocksDB, chain bchain.B api: api, } + serveMux.Handle(path+"favicon.ico", http.FileServer(http.Dir("./static/"))) serveMux.HandleFunc(path+"metrics", promhttp.Handler().ServeHTTP) serveMux.HandleFunc(path, s.index)