Skip to content

Commit

Permalink
Use default http transport that looks at proxy environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dehaansa committed Nov 24, 2024
1 parent 4144b21 commit 55c827b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func NewMongoDBAtlasClient(
backoffConfig configretry.BackOffConfig,
log *zap.Logger,
) *MongoDBAtlasClient {
defaultTransporter := &http.Transport{}
defaultTransporter := http.DefaultTransport.(*http.Transport)
t := digest.NewTransportWithHTTPTransport(publicKey, privateKey, defaultTransporter)
roundTripper := newClientRoundTripper(t, log, backoffConfig)
tc := &http.Client{Transport: roundTripper}
Expand Down

0 comments on commit 55c827b

Please sign in to comment.