server: fix proxy not being set from environment on ollama pull and ollama push
This commit is contained in:
parent
cfb1ddd6fc
commit
bc40a820f0
@ -1078,6 +1078,7 @@ func makeRequest(ctx context.Context, method string, requestURL *url.URL, header
|
||||
|
||||
resp, err := (&http.Client{
|
||||
Transport: &http.Transport{
|
||||
Proxy: http.ProxyFromEnvironment,
|
||||
DialContext: testMakeRequestDialContext,
|
||||
},
|
||||
CheckRedirect: regOpts.CheckRedirect,
|
||||
|
Loading…
x
Reference in New Issue
Block a user