mirror of
https://github.com/distribution/distribution.git
synced 2026-07-17 02:00:41 +00:00
fix: report error in DeleteManifest when Delete returns ErrDigestUnsupported (#4802)
This commit is contained in:
@@ -471,8 +471,7 @@ func (imh *manifestHandler) DeleteManifest(w http.ResponseWriter, r *http.Reques
|
||||
err = manifests.Delete(imh, imh.Digest)
|
||||
if err != nil {
|
||||
switch err {
|
||||
case digest.ErrDigestUnsupported:
|
||||
case digest.ErrDigestInvalidFormat:
|
||||
case digest.ErrDigestUnsupported, digest.ErrDigestInvalidFormat:
|
||||
imh.Errors = append(imh.Errors, errcode.ErrorCodeDigestInvalid)
|
||||
return
|
||||
case distribution.ErrBlobUnknown:
|
||||
|
||||
Reference in New Issue
Block a user