From 906e00aaecaa3032345c35ae7691e46610441ca5 Mon Sep 17 00:00:00 2001 From: Luke Cyca Date: Thu, 16 Jan 2020 15:05:19 -0800 Subject: [PATCH] Allow unauthenticated client --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index f152fe9..e2ae5a6 100644 --- a/client.go +++ b/client.go @@ -31,7 +31,7 @@ func New(auth, baseURL string) (*Client, error) { if strings.Contains(auth, ":") { split := strings.Split(auth, ":") u.User = url.UserPassword(split[0], split[1]) - } else { + } else if auth != "" { key = fmt.Sprintf("Bearer %s", auth) } return &Client{