Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit c88dfea

Browse files
radeksimkomlclmj
authored andcommitted
Set new HttpClient via cleanhttp (#19)
1 parent 75c91ff commit c88dfea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import (
1010
"os"
1111
"path"
1212
"strings"
13+
14+
"github.com/hashicorp/go-cleanhttp"
1315
)
1416

1517
type Client struct {
@@ -35,7 +37,7 @@ func New(auth, baseURL string) (*Client, error) {
3537
return &Client{
3638
key,
3739
*u,
38-
&http.Client{},
40+
cleanhttp.DefaultClient(),
3941
}, nil
4042
}
4143

0 commit comments

Comments
 (0)