mirror of
https://github.com/ollama/ollama.git
synced 2025-04-02 09:00:28 +02:00
Merge pull request #492 from jmorganca/mxyng/nil-pointer
fix nil pointer dereference
This commit is contained in:
commit
41e976edde
@ -1300,7 +1300,7 @@ func makeRequestWithRetry(ctx context.Context, method string, requestURL *url.UR
|
||||
}
|
||||
|
||||
func makeRequest(ctx context.Context, method string, requestURL *url.URL, headers http.Header, body io.Reader, regOpts *RegistryOptions) (*http.Response, error) {
|
||||
if requestURL.Scheme != "http" && regOpts.Insecure {
|
||||
if requestURL.Scheme != "http" && regOpts != nil && regOpts.Insecure {
|
||||
requestURL.Scheme = "http"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user