aboutsummaryrefslogtreecommitdiffstats
path: root/modules/lfs/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lfs/client.go')
-rw-r--r--modules/lfs/client.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/lfs/client.go b/modules/lfs/client.go
index 81b047c5bd..aaf61aefcf 100644
--- a/modules/lfs/client.go
+++ b/modules/lfs/client.go
@@ -7,6 +7,7 @@ package lfs
import (
"context"
"io"
+ "net/http"
"net/url"
)
@@ -24,9 +25,9 @@ type Client interface {
}
// NewClient creates a LFS client
-func NewClient(endpoint *url.URL, skipTLSVerify bool) Client {
+func NewClient(endpoint *url.URL, httpTransport *http.Transport) Client {
if endpoint.Scheme == "file" {
return newFilesystemClient(endpoint)
}
- return newHTTPClient(endpoint, skipTLSVerify)
+ return newHTTPClient(endpoint, httpTransport)
}