add version

This commit is contained in:
Michael Yang 2023-08-21 18:24:42 -07:00
parent 0a892419ad
commit 2c7f956b38
7 changed files with 47 additions and 36 deletions

View file

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