mirror of
https://github.com/containers/skopeo.git
synced 2025-08-31 22:28:33 +00:00
Merge pull request #196 from runcom/crane-fix
vendor containers/image to fix RH
This commit is contained in:
7
vendor/github.com/containers/image/image/image.go
generated
vendored
7
vendor/github.com/containers/image/image/image.go
generated
vendored
@@ -67,7 +67,12 @@ func (i *genericImage) Manifest() ([]byte, string, error) {
|
|||||||
return nil, "", err
|
return nil, "", err
|
||||||
}
|
}
|
||||||
i.cachedManifest = m
|
i.cachedManifest = m
|
||||||
if mt == "" {
|
if mt == "" || mt == "text/plain" {
|
||||||
|
// Crane registries can return "text/plain".
|
||||||
|
// This makes no real sense, but it happens
|
||||||
|
// because requests for manifests are
|
||||||
|
// redirected to a content distribution
|
||||||
|
// network which is configured that way.
|
||||||
mt = manifest.GuessMIMEType(i.cachedManifest)
|
mt = manifest.GuessMIMEType(i.cachedManifest)
|
||||||
}
|
}
|
||||||
i.cachedManifestMIMEType = mt
|
i.cachedManifestMIMEType = mt
|
||||||
|
Reference in New Issue
Block a user