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

View file

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