forked from JointCloud/pcm-coordinator
fix
Signed-off-by: jagger <cossjie@foxmail.com>
Former-commit-id: 63fbff1b56
This commit is contained in:
parent
3bd9b383a4
commit
d9a6332755
|
@ -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