From ac3cfa162c0ba44213be8a9f18eea0bf9def7d97 Mon Sep 17 00:00:00 2001 From: naiba Date: Sat, 4 Sep 2021 12:54:05 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20#nosec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/notification.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/model/notification.go b/model/notification.go index 6d5e304..a1ebb39 100644 --- a/model/notification.go +++ b/model/notification.go @@ -80,9 +80,11 @@ func (n *Notification) Send(message string) error { verifySSL = true } + /* #nosec */ transCfg := &http.Transport{ - TLSClientConfig: &tls.Config{InsecureSkipVerify: verifySSL}, // #nosec + TLSClientConfig: &tls.Config{InsecureSkipVerify: verifySSL}, } + client := &http.Client{Transport: transCfg, Timeout: time.Minute * 10} reqBody, err := n.reqBody(message)