mirror of
https://github.com/containers/skopeo.git
synced 2025-09-23 19:07:03 +00:00
vendor containers/image to fix RH
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
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
|
||||
}
|
||||
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)
|
||||
}
|
||||
i.cachedManifestMIMEType = mt
|
||||
|
Reference in New Issue
Block a user