Skip to content

Commit f18cb6d

Browse files
committedJun 7, 2024··
use DefaultTransport
1 parent c296e83 commit f18cb6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎internal/apiserver/kolide/transport.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ type Transport struct {
1818
MaxHttpRetries int
1919
}
2020

21+
var _ http.RoundTripper = &Transport{}
22+
2123
func NewTransport(token string) *Transport {
2224
return &Transport{
2325
Token: token,
24-
Transport: http.DefaultClient.Transport,
26+
Transport: http.DefaultTransport,
2527
MaxHttpRetries: 10,
2628
DefaultRetryAfter: time.Second,
2729
}

0 commit comments

Comments
 (0)
Please sign in to comment.