Explorar o código

server: fix proxy not being set from environment on ollama pull and ollama push

jmorganca hai 5 meses
pai
achega
bc40a820f0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      server/images.go

+ 1 - 0
server/images.go

@@ -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,