-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
For the internal.DefaultHTTPClient, instead of creating a new http.Transport that may deviate from the Go http.DefaultTransport over time, use http.DefaultTransport.Clone().
Note that the Clone function is available starting in Go 1.13, so it depends on GODRIVER-2174 and should only be added after the Go Driver 1.11 release (1.11 documents the min Go version change, but should not include any actual build-breaking changes).
See this Go issue for more details about why Clone() was added and how to use it.
- depends on
-
GODRIVER-2174 Bump the minimum Go version to 1.13
- Closed
-
GODRIVER-2050 Be able to supply http.Transport for OCSP
- Closed
- is related to
-
GODRIVER-2603 Use errors API from Go 1.13
- Closed