diff --git a/registry/auth/auth.go b/registry/auth/auth.go index 862c8d28c..b3bb580d2 100644 --- a/registry/auth/auth.go +++ b/registry/auth/auth.go @@ -21,7 +21,9 @@ // if ctx, err := accessController.Authorized(ctx, access); err != nil { // if challenge, ok := err.(auth.Challenge) { // // Let the challenge write the response. -// challenge.ServeHTTP(w, r) +// challenge.SetHeaders(w) +// w.WriteHeader(http.StatusUnauthorized) +// return // } else { // // Some other error. // }