Skip to content

Commit

Permalink
Merge pull request #2913 from buildkite/override-tlsclientconfig-if-set
Browse files Browse the repository at this point in the history
Only override TLSClientConfig if set
  • Loading branch information
DrJosh9000 authored Aug 1, 2024
2 parents d9378e4 + dc92305 commit bc0689e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ func NewClient(l logger.Logger, conf Config) *Client {
tr.TLSClientConfig.NextProtos = []string{"http/1.1"}
}

tr.TLSClientConfig = conf.TLSConfig
if conf.TLSConfig != nil {
tr.TLSClientConfig = conf.TLSConfig
}

httpClient = &http.Client{
Timeout: 60 * time.Second,
Expand Down

0 comments on commit bc0689e

Please sign in to comment.