Former-commit-id: 4866e1679f
This commit is contained in:
tzwang 2024-08-17 15:31:12 +08:00
commit 515216ac1c
1 changed files with 5 additions and 1 deletions

View File

@ -206,7 +206,11 @@ func HttpClientWithBodyAndCode(method string, url string, payload io.Reader, tok
func HttpClientWithScreen(method string, url string, payload io.Reader) (int, []byte, error) {
request, err := http.NewRequest(method, url, payload)
client := &http.Client{}
client := &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
},
}
res, err := client.Do(request)
if err != nil {
log.Fatal(err)