Close #14: Support skipping certificate verification (services[].insecure)

This commit is contained in:
TwinProduction committed 2020-10-04 17:01:10 -04:00
1 parent ed490669b1
commit 6a3f65db7f
5 files changed
+46 -13

No files matched your search

+1 -1
View File
@@ -73,7 +73,7 @@ func (provider *AlertProvider) buildRequest(serviceName, alertDescription string
// Send a request to the alert provider and return the body
func (provider *AlertProvider) Send(serviceName, alertDescription string, resolved bool) ([]byte, error) {
request := provider.buildRequest(serviceName, alertDescription, resolved)
response, err := client.GetHttpClient().Do(request)
response, err := client.GetHttpClient(false).Do(request)
if err != nil {
return nil, err
}