mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-03 07:57:13 +00:00
Fix: fix the goroutine leak in http request (#4302)
Signed-off-by: FogDong <dongtianxin.tx@alibaba-inc.com>
(cherry picked from commit 559ef83abd)
Co-authored-by: FogDong <dongtianxin.tx@alibaba-inc.com>
This commit is contained in:
committed by
GitHub
parent
e6bcc7de1f
commit
21534a5909
@@ -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,
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user