mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-16 21:56:43 -05:00
log full URL on bad host error
This commit is contained in:
parent
6402de6349
commit
e7655f13d8
1 changed files with 2 additions and 2 deletions
|
@ -83,8 +83,8 @@ func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
if !p.allowed(req.URL) {
|
||||
glog.Errorf("remote URL is not for an allowed host: %v", req.URL.Host)
|
||||
http.Error(w, fmt.Sprintf("remote URL is not for an allowed host: %v", req.URL.Host), http.StatusBadRequest)
|
||||
glog.Errorf("remote URL is not for an allowed host: %v", req.URL)
|
||||
http.Error(w, fmt.Sprintf("remote URL is not for an allowed host: %v", req.URL), http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue