feat: settings for tls insecure skip verify (close #3306 in #3307)

This commit is contained in:
BoYanZh
2023-02-08 22:01:26 +08:00
committed by GitHub
parent a4f4fb2d73
commit 7bc46de8aa
3 changed files with 25 additions and 17 deletions

View File

@ -23,8 +23,9 @@ func init() {
}
func NewRestyClient() *resty.Client {
return resty.New().
client := resty.New().
SetHeader("user-agent", UserAgent).
SetRetryCount(3).
SetTimeout(DefaultTimeout)
return client
}