From e62f59cca682503504817cf7626ac5c0a51c305d Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Thu, 28 Nov 2024 15:36:58 +0200 Subject: [PATCH] Improve upload archive progress bar Signed-off-by: Michael Sverdlov --- http/httpclient/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/http/httpclient/client.go b/http/httpclient/client.go index 4cc52bc85..a3265db1b 100644 --- a/http/httpclient/client.go +++ b/http/httpclient/client.go @@ -134,7 +134,8 @@ func (jc *HttpClient) Send(method, url string, content []byte, followRedirect, c resp, respBody, redirectUrl, err = jc.doRequest(req, content, followRedirect, closeBody, httpClientsDetails) if err != nil { if strings.Contains(err.Error(), "unsupported protocol scheme") { - err = fmt.Errorf("invalid URL %q. Please ensure the URL includes a valid scheme like http:// or https://: %w", url, err) + // Wrong URL, so no need to retry + return false, fmt.Errorf("invalid URL %q. Please ensure the URL includes a valid scheme like http:// or https://: %w", url, err) } return true, err }