diff options
Diffstat (limited to 'view/favicon.go')
-rw-r--r-- | view/favicon.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/view/favicon.go b/view/favicon.go index 8e3ea79..67d7051 100644 --- a/view/favicon.go +++ b/view/favicon.go @@ -4,6 +4,10 @@ import ( "net/http" ) -func FaviconRead(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNoContent) +func FaviconRead() http.Handler { + return http.HandlerFunc( + func(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusNoContent) + }, + ) } |