Skip to content

Commit

Permalink
Rename favicon variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm committed Aug 9, 2022
1 parent edacab9 commit 0c52a9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions favicon.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
)

//go:embed favicon.ico
var faviconICOBlob []byte
var faviconBlob []byte

func faviconHandler(cacheTime time.Duration) (func(w http.ResponseWriter, r *http.Request), error) {
return func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "image/x-icon")
cacheHeaders(w, cacheTime)
w.Write(faviconICOBlob)
w.Write(faviconBlob)
}, nil
}

0 comments on commit 0c52a9b

Please sign in to comment.