From e7655f13d8c53eab715400ff6d97af5d218c107b Mon Sep 17 00:00:00 2001 From: Will Norris Date: Thu, 26 Dec 2013 19:42:18 -0800 Subject: [PATCH] log full URL on bad host error --- proxy/proxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/proxy.go b/proxy/proxy.go index 822ef6d..7f8ca40 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -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 }