Fix: fix the goroutine leak in http request (#4298)

Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
This commit is contained in:
Tianxin Dong
2022-07-01 17:52:54 +08:00
committed by GitHub
parent 8f11b5b1a4
commit c6d170fef6
+1 -1
View File
@@ -51,7 +51,7 @@ func (c *HTTPCmd) Run(meta *registry.Meta) (res interface{}, err error) {
var (
r io.Reader
client = &http.Client{
Transport: &http.Transport{},
Transport: http.DefaultTransport,
Timeout: time.Second * 3,
}
)