From: Paul Tagliamonte Date: Wed, 4 Nov 2015 08:09:02 +0000 (+0000) Subject: distribution-2.1.1 X-Git-Tag: archive/raspbian/18.09.1+dfsg1-7+rpi1~1^2^2^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d9f0f713ef018227035747d59e63640ce3e49148;p=docker.io.git distribution-2.1.1 Gbp-Pq: Name distribution-2.1.1.patch --- diff --git a/registry/registry.go b/registry/registry.go index f6907994..148439b8 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -189,7 +189,7 @@ func addRequiredHeadersToRedirectedRequests(req *http.Request, via []*http.Reque func shouldV2Fallback(err errcode.Error) bool { logrus.Debugf("v2 error: %T %v", err, err) switch err.Code { - case v2.ErrorCodeUnauthorized, v2.ErrorCodeManifestUnknown: + case errcode.ErrorCodeUnauthorized, v2.ErrorCodeManifestUnknown: return true } return false