Skip to content

Commit ff2ab29

Browse files
committed
GET request digest header must match body
Signed-off-by: Peter Engelbert <[email protected]>
1 parent d1f9a0b commit ff2ab29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ To pull a blob, perform a `GET` request to a URL in the following form:
157157

158158
A GET request to an existing blob URL MUST provide the expected blob, with a response code that MUST be `200 OK`.
159159
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.
160+
reasons, the digest MAY be contained in the header `Docker-Content-Digest` instead. Either header is OPTIONAL. However,
161+
if one of these headers is present, the value of the header MUST be a digest matching that of the response body.
161162

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

0 commit comments

Comments
 (0)