fix: make TlsInsecureSkipVerify enable for all request (#4386)

This commit is contained in:
XYUU
2023-05-14 17:05:47 +08:00
committed by GitHub
parent 3c4c2ad4e0
commit a3446720a2
11 changed files with 65 additions and 39 deletions

View File

@ -12,6 +12,7 @@ import (
"strings"
"time"
"github.com/alist-org/alist/v3/drivers/base"
"golang.org/x/net/publicsuffix"
)
@ -185,7 +186,7 @@ func (ca *CookieAuth) getSPToken() (*SuccessResponse, error) {
return nil, err
}
client := &http.Client{}
client := base.HttpClient
resp, err := client.Do(req)
if err != nil {
return nil, err