wrong method name for using as a handler
This commit is contained in:
parent
102b19da41
commit
86164b6fee
1 changed files with 2 additions and 2 deletions
|
@ -15,14 +15,14 @@ var (
|
|||
type defaultFavIcon struct {
|
||||
}
|
||||
|
||||
func (dfi defaultFavIcon) Route(w http.ResponseWriter, r *http.Request) {
|
||||
func (dfi defaultFavIcon) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
LogRequest(r, 200)
|
||||
w.Header().Set("Cache-Control", "max-age=315360000")
|
||||
}
|
||||
|
||||
/* simple interface for a favicon */
|
||||
type FavIcon interface {
|
||||
Route(w http.ResponseWriter, r *http.Request)
|
||||
ServeHTTP(w http.ResponseWriter, r *http.Request)
|
||||
}
|
||||
|
||||
// for debugging request headers
|
||||
|
|
Loading…
Reference in a new issue