Skip to content

Commit

Permalink
Update Docker-Content-Digest if manifest list is rewritten
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dmage committed Jun 16, 2017
1 parent 1e2f10e commit 5b1b6af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions registry/handlers/manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ func (imh *manifestHandler) GetManifest(w http.ResponseWriter, r *http.Request)
if err != nil {
return
}
} else {
imh.Digest = manifestDigest
}
}

Expand Down

0 comments on commit 5b1b6af

Please sign in to comment.