Skip to content

Commit

Permalink
Merge pull request #2572 from mtrmac/unambiguous-typo
Browse files Browse the repository at this point in the history
Fix an incorrect expected MIME type when validating manifests
  • Loading branch information
rhatdan authored Sep 20, 2024
2 parents 771172d + 2207dc4 commit c19c91d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifest/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func OCI1FromManifest(manifestBlob []byte) (*OCI1, error) {
if err := json.Unmarshal(manifestBlob, &oci1); err != nil {
return nil, err
}
if err := manifest.ValidateUnambiguousManifestFormat(manifestBlob, imgspecv1.MediaTypeImageIndex,
if err := manifest.ValidateUnambiguousManifestFormat(manifestBlob, imgspecv1.MediaTypeImageManifest,
manifest.AllowedFieldConfig|manifest.AllowedFieldLayers); err != nil {
return nil, err
}
Expand Down

0 comments on commit c19c91d

Please sign in to comment.