summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorSanskar Jaiswal <[email protected]>2022-10-04 20:20:57 +0530
committerGitHub <[email protected]>2022-10-04 07:50:57 -0700
commitc1ec21d89caa0cdb0aefd6f6b8f95648418a3543 (patch)
tree33d4bb4b521a5c5f4502d92db478b0786953363b /http.go
parent9db5de109c166aa802b85cfae2dced3c4728a00d (diff)
libgit2 v1.5.0 #major (#929)
Update libgit2 to v1.5.0. Replace `SmartProxyOptions()` with `SmartRemoteConnectOptions()`. Fixes: https://github.com/libgit2/git2go/issues/899 Signed-off-by: Sanskar Jaiswal <[email protected]> Co-authored-by: lhchavez <[email protected]>
Diffstat (limited to 'http.go')
-rw-r--r--http.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/http.go b/http.go
index cb4c7d0..ce6b8fc 100644
--- a/http.go
+++ b/http.go
@@ -38,17 +38,17 @@ func registerManagedHTTP() error {
func httpSmartSubtransportFactory(remote *Remote, transport *Transport) (SmartSubtransport, error) {
var proxyFn func(*http.Request) (*url.URL, error)
- proxyOpts, err := transport.SmartProxyOptions()
+ remoteConnectOpts, err := transport.SmartRemoteConnectOptions()
if err != nil {
return nil, err
}
- switch proxyOpts.Type {
+ switch remoteConnectOpts.ProxyOptions.Type {
case ProxyTypeNone:
proxyFn = nil
case ProxyTypeAuto:
proxyFn = http.ProxyFromEnvironment
case ProxyTypeSpecified:
- parsedUrl, err := url.Parse(proxyOpts.Url)
+ parsedUrl, err := url.Parse(remoteConnectOpts.ProxyOptions.Url)
if err != nil {
return nil, err
}