Fix #146: Alerting causes panic with some providers
This commit is contained in:
1 parent
07b1a2eafb
commit
cdbc075439
5 files changed
+22
-9
No files matched your search
+1
-1
@@ -47,7 +47,7 @@ func (c *Config) ValidateAndSetDefaults() {
|
||||
}
|
||||
|
||||
// GetHTTPClient return a HTTP client matching the Config's parameters.
|
||||
func (c *Config) GetHTTPClient() *http.Client {
|
||||
func (c *Config) getHTTPClient() *http.Client {
|
||||
if c.httpClient == nil {
|
||||
c.httpClient = &http.Client{
|
||||
Timeout: c.Timeout,
|
||||
|
||||
Reference in new issue
Block a user