wrong method name for using as a handler

This commit is contained in:
Vincent Batts 2013-07-03 11:18:35 -04:00
parent 102b19da41
commit 86164b6fee

View file

@ -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