working commit
This commit is contained in:
@@ -54,7 +54,7 @@ func (hand *Handler) CheckAccess(rctx *router.Context) (bool, string, error) {
|
||||
|
||||
//hand.logg.Debugf("URL: %s", rctx.URL().String())
|
||||
authHeader := rctx.GetHeader("Authorization")
|
||||
hand.logg.Debugf("Authorization: %s", authHeader)
|
||||
hand.logg.Debugf("Authorization: [%s]", authHeader)
|
||||
if authHeader != "" {
|
||||
username, password, err = auxhttp.ParseBasicAuth(authHeader)
|
||||
if err != nil {
|
||||
|
||||
@@ -25,7 +25,6 @@ func (hand *Handler) BlobExists(rctx *router.Context) {
|
||||
digest, _ := rctx.GetSubpath("digest")
|
||||
|
||||
//hand.DumpHeaders("BlobExists", rctx)
|
||||
|
||||
params := &imageoper.BlobExistsParams{
|
||||
Name: name,
|
||||
Digest: digest,
|
||||
@@ -63,7 +62,6 @@ func (hand *Handler) PostUpload(rctx *router.Context) {
|
||||
name, _ := rctx.GetSubpath("name")
|
||||
|
||||
//hand.DumpHeaders("PostUploads", rctx)
|
||||
|
||||
authorization := rctx.GetHeader("Authorization")
|
||||
if authorization == "" {
|
||||
rctx.SetHeader("WWW-Authenticate", `Basic realm="mstore"`)
|
||||
|
||||
Reference in New Issue
Block a user