You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec.md
+13-2
Original file line number
Diff line number
Diff line change
@@ -142,7 +142,9 @@ The `<reference>` MUST NOT be in any other format. Throughout this document, `<n
142
142
143
143
The client SHOULD include an `Accept` header indicating which manifest content types it supports.
144
144
In a successful response, the `Content-Type` header will indicate the type of the returned manifest.
145
-
For more information on the use of `Accept` headers and content negotiation, please see [Content Negotiation](./content-negotiation.md)
145
+
The `Content-Type` header SHOULD match what the client [pushed as the manifest's `Content-Type`](#pushing-manifests).
146
+
If the manifest has a `mediaType` field, clients SHOULD reject unless the `mediaType` field's value matches the type specified by the `Content-Type` header.
147
+
For more information on the use of `Accept` headers and content negotiation, please see [Content Negotiation](./content-negotiation.md).
146
148
147
149
A GET request to an existing manifest URL MUST provide the expected manifest, with a response code that MUST be `200 OK`.
148
150
A successful response SHOULD contain the digest of the uploaded blob in the header `Docker-Content-Digest`.
@@ -380,11 +382,20 @@ it SHOULD return a `202`. This indicates that the upload session has begun and t
380
382
To push a manifest, perform a `PUT` request to a path in the following format, and with the following headers
0 commit comments