mirror of
https://github.com/containers/skopeo.git
synced 2025-08-30 03:52:47 +00:00
Merge pull request #196 from runcom/crane-fix
vendor containers/image to fix RH
This commit is contained in:
commit
7e69022723
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
|
||||
|
Loading…
Reference in New Issue
Block a user