1
0
mirror of https://github.com/distribution/distribution synced 2024-11-06 19:35:52 +01:00

Update Docker-Content-Digest if manifest list is rewritten

If the client doesn't support manifest lists, the registry will
rewrite a manifest list into the old format. The Docker-Content-Digest
header should be updated in this case.

Signed-off-by: Oleg Bulatov <oleg@bulatov.me>
This commit is contained in:
Oleg Bulatov 2017-06-16 15:51:29 +02:00
parent 1e2f10eb65
commit 5b1b6afae2

@ -183,6 +183,8 @@ func (imh *manifestHandler) GetManifest(w http.ResponseWriter, r *http.Request)
if err != nil {
return
}
} else {
imh.Digest = manifestDigest
}
}