0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00

ignore favicon requests

This commit is contained in:
Will Norris 2014-11-23 16:04:53 -08:00
parent 54ddf21df2
commit f476aa27c3

View file

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