From f476aa27c3eaabf1b100f0106ad36c4af12db3d4 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Sun, 23 Nov 2014 16:04:53 -0800 Subject: [PATCH] ignore favicon requests --- imageproxy.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/imageproxy.go b/imageproxy.go index 4761ed4..4fc1d6d 100644 --- a/imageproxy.go +++ b/imageproxy.go @@ -64,6 +64,10 @@ func NewProxy(transport http.RoundTripper, cache Cache) *Proxy { // ServeHTTP handles image requests. func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) { + if r.URL.Path == "/favicon.ico" { + return // ignore favicon requests + } + req, err := NewRequest(r) if err != nil { msg := fmt.Sprintf("invalid request URL: %v", err)