Merge pull request #744 from aaronlehmann/manifest-put-response-code

Manifest PUT should return 201 Created
This commit is contained in:
Derek McGowan 2015-07-28 10:42:54 -07:00
commit 09dd357016
3 changed files with 4 additions and 4 deletions

View file

@ -183,7 +183,7 @@ func (imh *imageManifestHandler) PutImageManifest(w http.ResponseWriter, r *http
w.Header().Set("Location", location)
w.Header().Set("Docker-Content-Digest", imh.Digest.String())
w.WriteHeader(http.StatusAccepted)
w.WriteHeader(http.StatusCreated)
}
// DeleteImageManifest removes the manifest with the given digest from the registry.