diff --git a/spec.md b/spec.md index 18046593..64c92455 100644 --- a/spec.md +++ b/spec.md @@ -142,7 +142,9 @@ The `` MUST NOT be in any other format. Throughout this document, `/manifests/` [end-7](#endpoints) + +Clients SHOULD set the `Content-Type` header to the type of the manifest being pushed. +All manifests SHOULD include a `mediaType` field declaring the type of the manifest being pushed. +If a manifest includes a `mediaType` field, clients MUST set the `Content-Type` header to the value specified by the `mediaType` field. + ``` Content-Type: application/vnd.oci.image.manifest.v1+json ``` +Manifest byte stream: ``` - +{ + "mediaType": "application/vnd.oci.image.manifest.v1+json", + ... +} ``` `` is the namespace of the repository, and the `` MUST be either a) a digest or b) a tag.