working commit
This commit is contained in:
@@ -22,15 +22,8 @@ func (hand *Handler) BlobExists(rctx *router.Context) {
|
||||
name, _ := rctx.GetSubpath("name")
|
||||
digest, _ := rctx.GetSubpath("digest")
|
||||
|
||||
auth := rctx.GetHeader("Authorization")
|
||||
hand.DumpHeaders("BlobExists", rctx)
|
||||
|
||||
if auth == "" {
|
||||
rctx.SetHeader("WWW-Authenticate", `Basic realm="mstore"`)
|
||||
rctx.SetStatus(http.StatusUnauthorized)
|
||||
return
|
||||
}
|
||||
|
||||
params := &operator.BlobExistsParams{
|
||||
Name: name,
|
||||
Digest: digest,
|
||||
|
||||
Reference in New Issue
Block a user