// Favicon will proxy the request as usual if the user is already authenticated but responds
// with a 404 otherwise, to avoid spurious and confusing authenticate attempts when a browser
// automatically requests the favicon on an error page.
Favicon will proxy the request as usual if the user is already authenticated but responds
with a 404 otherwise, to avoid spurious and confusing authenticate attempts when a browser
automatically requests the favicon on an error page.
// Favicon will proxy the request as usual if the user is already authenticated but responds // with a 404 otherwise to avoid spurious and confusing authenticate attempts when a browser // automatically requests the favicon on an error page .
func (p *Proxy) Favicon(w http.ResponseWriter, r *http.Request) {
	err := p.Authenticate(w, r)
	if err != nil {
		w.WriteHeader(http.StatusNotFound)
		return
	}
	p.Proxy(w, r)
}
func ( p * Proxy ) Favicon ( w http . ResponseWriter , r * http . Request ) { err := p . Authenticate ( w , r ) if err != nil { w . WriteHeader ( http . StatusNotFound ) return } p . Proxy ( w , r ) }
Favicon will proxy the request as usual if the user is already authenticated but responds
with a 404 otherwise, to avoid spurious and confusing authenticate attempts when a browser
automatically requests the favicon on an error page.
Favicon will proxy the request as usual if the user is already authenticated but responds with a 404 otherwise to avoid spurious and confusing authenticate attempts when a browser automatically requests the favicon on an error page .