remove InsecureSkipVerify (#2903)

Signed-off-by: Jian.Li <lj176172@alibaba-inc.com>
This commit is contained in:
Jian.Li
2021-12-09 09:20:49 +08:00
committed by GitHub
parent ad4b44696a
commit 3e81fdf008

View File

@@ -35,19 +35,10 @@ func init() {
}
// HTTPCmd provides methods for http task
type HTTPCmd struct {
*http.Client
}
type HTTPCmd struct{}
func newHTTPCmd(v cue.Value) (registry.Runner, error) {
client := &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
},
},
}
return &HTTPCmd{client}, nil
func newHTTPCmd(_ cue.Value) (registry.Runner, error) {
return &HTTPCmd{}, nil
}
// Run exec the actual http logic, and res represent the result of http task