mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 10:26:53 +02:00
add version
This commit is contained in:
parent
0a892419ad
commit
2c7f956b38
7 changed files with 47 additions and 36 deletions
|
@ -94,10 +94,8 @@ func getAuthToken(ctx context.Context, redirData AuthRedirect, regOpts *Registry
|
|||
return "", err
|
||||
}
|
||||
|
||||
headers := map[string]string{
|
||||
"Authorization": sig,
|
||||
}
|
||||
|
||||
headers := make(http.Header)
|
||||
headers.Set("Authorization", sig)
|
||||
resp, err := makeRequest(ctx, "GET", url, headers, nil, regOpts)
|
||||
if err != nil {
|
||||
log.Printf("couldn't get token: %q", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue