diff options
Diffstat (limited to 'internal/httptransport/transport_clone.go')
-rw-r--r-- | internal/httptransport/transport_clone.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/httptransport/transport_clone.go b/internal/httptransport/transport_clone.go new file mode 100644 index 00000000..3b56250d --- /dev/null +++ b/internal/httptransport/transport_clone.go @@ -0,0 +1,12 @@ +// +build go1.14 + +package httptransport + +import ( + "net/http" +) + +// from go 1.14 onwards call Clone directly +func clone(t *http.Transport) *http.Transport { + return t.Clone() +} |