tls: require mutual auth only when htpasswd not available

This commit is contained in:
Ramkumar Chinchani
2019-07-20 17:30:58 -07:00
parent 066bf1b9eb
commit 36ca298507
17 changed files with 113 additions and 183 deletions
+1 -1
View File
@@ -360,7 +360,7 @@ func (is *ImageStore) PutImageManifest(repo string, reference string,
// manifest contents have changed for the same tag
desc = m
desc.Digest = mDigest
index.Manifests = append(index.Manifests[:i], index.Manifests[1+1:]...)
index.Manifests = append(index.Manifests[:i], index.Manifests[i+1:]...)
break
}
}