diff --git a/command/agent/http.go b/command/agent/http.go index c5a5421fc1..8e5ea7c24e 100644 --- a/command/agent/http.go +++ b/command/agent/http.go @@ -293,6 +293,10 @@ func (s *HTTPServer) wrap(handler func(resp http.ResponseWriter, req *http.Reque logURL := req.URL.String() if tokens, ok := formVals["token"]; ok { for _, token := range tokens { + if token == "" { + logURL += "" + continue + } logURL = strings.Replace(logURL, token, "", -1) } }