Commit f03f4187 by CaIon

fix(http_client): improve error message for unsupported proxy schemes

parent 78b9b21a
...@@ -110,6 +110,6 @@ func NewProxyHttpClient(proxyURL string) (*http.Client, error) { ...@@ -110,6 +110,6 @@ func NewProxyHttpClient(proxyURL string) (*http.Client, error) {
return client, nil return client, nil
default: default:
return nil, fmt.Errorf("unsupported proxy scheme: %s", parsedURL.Scheme) return nil, fmt.Errorf("unsupported proxy scheme: %s, must be http, https, socks5 or socks5h", parsedURL.Scheme)
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment