Skip to content

Conversation

maraino
Copy link
Contributor

@maraino maraino commented Oct 16, 2024

Description

This commit avoids an error starting the CA if the http.DefaultTransport is not an *http.Transport. If the DefaultTransport is overwritten, the newHTTPClient method will return a simple *http.Client. With an *http.Transport, it will return a client that trusts the system certificate pool and the CA roots.

This commit avoids an error starting the CA if the `http.DefaultTransport`
is not an `*http.Transport`. If the DefaultTransport is overwritten, the
newHTTPClient method will return a simple *http.Client. With an
*http.Transport, it will return a client that trusts the system
certificate pool and the CA roots.
@maraino maraino requested a review from dopey October 16, 2024 01:09
@github-actions github-actions bot added the needs triage Waiting for discussion / prioritization by team label Oct 16, 2024
@maraino maraino merged commit 4d59f35 into master Oct 16, 2024
16 checks passed
@maraino maraino deleted the mariano/http-client branch October 16, 2024 01:33
@hslatman hslatman added this to the v0.27.5 milestone Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs triage Waiting for discussion / prioritization by team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants