fix(http): add transport timeouts so tea fails fast on stalled servers (#1020)

Fixes #1018

Co-authored-by: dinsmoor <204368+dinsmoor@noreply.gitea.com>
Co-committed-by: dinsmoor <204368+dinsmoor@noreply.gitea.com>
This commit is contained in:
dinsmoor
2026-06-26 19:59:05 +00:00
committed by techknowlogick
parent 6a57af24ad
commit 885381e3e4
6 changed files with 178 additions and 20 deletions
+1 -3
View File
@@ -31,9 +31,7 @@ func NewClient(login *config.Login) *Client {
}
httpClient := &http.Client{
Transport: httputil.WrapTransport(&http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: login.Insecure},
}),
Transport: httputil.WrapTransport(&tls.Config{InsecureSkipVerify: login.Insecure}),
}
return &Client{