A digest missing parameter should result in a bad request

Signed-off-by: Stephen J Day <stephen.day@docker.com>
pull/191/head
Stephen J Day 2015-02-19 17:14:25 -08:00
parent 4c2a490ff0
commit c2b20907d9
1 changed files with 1 additions and 1 deletions

View File

@ -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
}