From 86164b6feef9bacecb2e451e9adc9a95a7d43944 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Wed, 3 Jul 2013 11:18:35 -0400 Subject: [PATCH] wrong method name for using as a handler --- httplog.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httplog.go b/httplog.go index fbe2bdb..e5896ae 100644 --- a/httplog.go +++ b/httplog.go @@ -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