Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/httptransport/transport_clone.go')
-rw-r--r--internal/httptransport/transport_clone.go12
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()
+}