diff options
| author | Sanskar Jaiswal <[email protected]> | 2022-10-04 20:20:57 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-10-04 07:50:57 -0700 |
| commit | c1ec21d89caa0cdb0aefd6f6b8f95648418a3543 (patch) | |
| tree | 33d4bb4b521a5c5f4502d92db478b0786953363b /http.go | |
| parent | 9db5de109c166aa802b85cfae2dced3c4728a00d (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.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 } |
