prefer default client
@@ -17,8 +17,7 @@ func checkPing(opts solrOpts) *checkers.Checker {
}
req.Header.Set("User-Agent", "check-solr")
- client := &http.Client{}
- resp, err := client.Do(req)
+ resp, err := http.DefaultClient.Do(req)
if err != nil {
return checkers.Unknown("couldn't get access to " + uri)
}
