fix: field name "VerifySSL" to "SkipVerifySSL" in Transport config (#305)

This commit is contained in:
Mmx
2023-12-06 09:35:38 +08:00
committed by GitHub
parent 859e263815
commit 927bf13ce4
2 changed files with 5 additions and 11 deletions

View File

@@ -110,15 +110,9 @@ func (n *Notification) setRequestHeader(req *http.Request) error {
}
func (ns *NotificationServerBundle) Send(message string) error {
var verifySSL bool
var client *http.Client
n := ns.Notification
if n.VerifySSL != nil && *n.VerifySSL {
verifySSL = true
}
var client *http.Client
if verifySSL {
client = utils.HttpClient
} else {
client = utils.HttpClientSkipTlsVerify