@ -37,7 +37,7 @@ func GetToken(container types.Container, registryAuth string) (string, error) {
if res, err = client.Do(req); err != nil {
return "", err
}
defer res.Body.Close()
v := res.Header.Get(ChallengeHeader)
logrus.WithFields(logrus.Fields{
@ -91,6 +91,8 @@ func GetDigest(url string, token string) (string, error) {
if err != nil {
if res.StatusCode != 200 {
return "", fmt.Errorf("registry responded to head request with %d", res.StatusCode)