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
1 changed files with 2 additions and 0 deletions

View File

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