Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cmd/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ func newHTTPClient(insecure, debug bool) *http.Client {
tlsCfg := &tls.Config{
InsecureSkipVerify: insecure, // #nosec G402 — intentional, controlled by --insecure flag
}
var transport http.RoundTripper = &http.Transport{TLSClientConfig: tlsCfg}
var transport http.RoundTripper = &http.Transport{
TLSClientConfig: tlsCfg,
ForceAttemptHTTP2: true,
}
if debug {
transport = &debugTransport{wrapped: transport}
}
Expand Down
1 change: 1 addition & 0 deletions internal/api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func New(baseURL, userAgent string, tokSource oauth2.TokenSource, insecure, debu
Source: tokSource,
Base: &http.Transport{
TLSClientConfig: tlsCfg,
ForceAttemptHTTP2: true,
TLSHandshakeTimeout: 15 * time.Second,
// ResponseHeaderTimeout guards against a server that accepts the
// connection but never sends headers back. It does NOT limit how
Expand Down
Loading