diff --git a/client.go b/client.go index f152fe9..85197c9 100644 --- a/client.go +++ b/client.go @@ -29,7 +29,7 @@ func New(auth, baseURL string) (*Client, error) { } key := "" if strings.Contains(auth, ":") { - split := strings.Split(auth, ":") + split := strings.SplitN(auth, ":", 2) u.User = url.UserPassword(split[0], split[1]) } else { key = fmt.Sprintf("Bearer %s", auth)