fix: Add timeout for http client (#1318)
* fix: Add timeout for http client Signed-off-by: Anatolii Bazko <abazko@redhat.com> * Update tls_utils.gopull/1319/head
parent
d571e53b3d
commit
a00fe513ed
|
|
@ -248,6 +248,7 @@ func doRequestForTLSCrtChain(ctx *deploy.DeployContext, requestURL string, skipP
|
|||
transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
|
||||
client := &http.Client{
|
||||
Transport: transport,
|
||||
Timeout: time.Second * 3,
|
||||
}
|
||||
|
||||
req, err := http.NewRequest("GET", requestURL, nil)
|
||||
|
|
|
|||
Loading…
Reference in New Issue