projects
/
docker.io.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48076c9
)
distribution-2.1.1
author
Paul Tagliamonte
<paultag@debian.org>
Wed, 4 Nov 2015 08:09:02 +0000
(08:09 +0000)
committer
Tianon 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
patch
|
blob
|
history
diff --git
a/registry/registry.go
b/registry/registry.go
index f690799499b5bfa2f589f086a454df78c15b5e4c..148439b8e124208dc469745e87e7bca93c33f8ef 100644
(file)
--- 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