We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bd1ac3 commit fa6a95fCopy full SHA for fa6a95f
1 file changed
apiClient.go
@@ -30,7 +30,7 @@ var (
30
31
// NewClient - обертка над http.Client для удобной работы с API v3
32
func NewClient(domain, token string, opts ...ClientOption) (c *ClientV3) {
33
- if strings.HasPrefix("http", domain) {
+ if strings.HasPrefix(domain, "http") {
34
_URL, _ := url.Parse(domain)
35
domain = _URL.Host
36
}
0 commit comments