Skip to content

Commit d1f9a0b

Browse files
committed
Edit spec to address comments
Signed-off-by: Peter Engelbert <[email protected]>
1 parent b220403 commit d1f9a0b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

spec.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ The `<reference>` MUST NOT be in any other format. Throughout this document, `<n
137137
`[a-z0-9]+([._-][a-z0-9]+)*(/[a-z0-9]+([._-][a-z0-9]+)*)*`
138138

139139
A GET request to an existing manifest URL MUST provide the expected manifest, with a response code that MUST be `200 OK`.
140+
A successful response SHOULD contain the digest of the uploaded blob in the header `OCI-Content-Digest`. For legacy
141+
reasons, the digest MAY be contained in the header `Docker-Content-Digest` instead. Either header is OPTIONAL.
140142

141143
The `OCI-Content-Digest` header (or, as a fallback, `Docker-Content-Digest` header), if present on the response, returns the canonical
142144
digest of the uploaded blob which MAY differ from the provided digest. If the digest does differ, it MAY be the case that
@@ -154,6 +156,8 @@ To pull a blob, perform a `GET` request to a URL in the following form:
154156
`<name>` is the namespace of the repository, and `<digest>` is the blob's digest.
155157

156158
A GET request to an existing blob URL MUST provide the expected blob, with a response code that MUST be `200 OK`.
159+
A successful response SHOULD contain the digest of the uploaded blob in the header `OCI-Content-Digest`. For legacy
160+
reasons, the digest MAY be contained in the header `Docker-Content-Digest` instead. Either header is OPTIONAL.
157161

158162
If the blob is not found in the registry, the response code MUST be `404 Not Found`.
159163

@@ -165,11 +169,12 @@ In order to verify that a repository contains a given manifest or blob, make a `
165169

166170
`/v2/<name>/blobs/<digest>` <sup>[end-11](#endpoints)</sup> (for blobs).
167171

168-
A HEAD request to an existing blob or manifest URL MUST return `200 OK`.
172+
A HEAD request to an existing blob or manifest URL MUST return `200 OK`. A successful response SHOULD contain the digest
173+
of the uploaded blob in the header `OCI-Content-Digest`. For legacy reasons, the digest MAY be contained in the header
174+
`Docker-Content-Digest` instead. Either header is OPTIONAL.
169175

170176
If the blob or manifest is not found in the registry, the response code MUST be `404 Not Found`.
171177

172-
173178
#### Push
174179

175180
Pushing an artifact typically works in the opposite order as a pull: the blobs making up the artifact are uploaded first,

0 commit comments

Comments
 (0)