Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: 63fbff1b56
This commit is contained in:
jagger 2024-08-16 10:30:38 +08:00
parent 3bd9b383a4
commit d9a6332755
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)