forked from JointCloud/pcm-coordinator
parent
6d4d430ac2
commit
63fbff1b56
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue