diff options
Diffstat (limited to 'client/go/util/http.go')
-rw-r--r-- | client/go/util/http.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/go/util/http.go b/client/go/util/http.go index 38224d2a842..7236f38b945 100644 --- a/client/go/util/http.go +++ b/client/go/util/http.go @@ -8,7 +8,6 @@ import ( "fmt" "net/http" "net/url" - "strings" "time" ) @@ -48,7 +47,7 @@ func HttpGet(host string, path string, description string) (*http.Response, erro func HttpDo(request *http.Request, timeout time.Duration, description string) (*http.Response, error) { response, err := ActiveHttpClient.Do(request, timeout) if err != nil { - return nil, fmt.Errorf("Could not connect to %s at %s: %w", strings.ToLower(description), request.URL.Host, err) + return nil, err } return response, nil } |