Merge pull request #191 from stevvooe/missing-digest-bad-request
A digest missing parameter should result in a bad request
This commit is contained in:
commit
3725bda8ea
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ func (luh *layerUploadHandler) PutLayerUploadComplete(w http.ResponseWriter, r *
|
|||
|
||||
if dgstStr == "" {
|
||||
// no digest? return error, but allow retry.
|
||||
w.WriteHeader(http.StatusNotFound)
|
||||
w.WriteHeader(http.StatusBadRequest)
|
||||
luh.Errors.Push(v2.ErrorCodeDigestInvalid, "digest missing")
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue