We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffcf588 commit 471c676Copy full SHA for 471c676
api_status.go
@@ -32,7 +32,7 @@ func (s *APIStatusResponse) OK() bool {
32
func APIStatus(endpoint string) (*APIStatusResponse, error) {
33
client := http.Client{
34
Transport: &http.Transport{
35
- Dial: (&net.Dialer{Timeout: time.Second}).Dial,
+ DialContext: (&net.Dialer{Timeout: time.Second}).DialContext,
36
ResponseHeaderTimeout: 2 * time.Second,
37
},
38
}
0 commit comments