distribution-2.1.1
authorPaul Tagliamonte <paultag@debian.org>
Wed, 4 Nov 2015 08:09:02 +0000 (08:09 +0000)
committerTianon Gravi <tianon@debian.org>
Wed, 4 Nov 2015 08:09:02 +0000 (08:09 +0000)
Gbp-Pq: Name distribution-2.1.1.patch

registry/registry.go

index f690799499b5bfa2f589f086a454df78c15b5e4c..148439b8e124208dc469745e87e7bca93c33f8ef 100644 (file)
@@ -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