mirror of https://github.com/Xhofe/alist
parent
83c2269330
commit
74b20dedc3
|
@ -33,6 +33,7 @@ func NewRestyClient() *resty.Client {
|
|||
client := resty.New().
|
||||
SetHeader("user-agent", UserAgent).
|
||||
SetRetryCount(3).
|
||||
SetRetryResetReaders(true).
|
||||
SetTimeout(DefaultTimeout).
|
||||
SetTLSClientConfig(&tls.Config{InsecureSkipVerify: conf.Conf.TlsInsecureSkipVerify})
|
||||
return client
|
||||
|
|
Loading…
Reference in New Issue