mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
ContainerRegistry - removed Basic Auth header (#19735)
* Removed Basic Auth header. * Fixed test.
This commit is contained in:
@@ -113,7 +113,6 @@ func apiErrorDefined(ctx *context.Context, err *namedError) {
|
||||
func ReqContainerAccess(ctx *context.Context) {
|
||||
if ctx.Doer == nil {
|
||||
ctx.Resp.Header().Add("WWW-Authenticate", `Bearer realm="`+setting.AppURL+`v2/token"`)
|
||||
ctx.Resp.Header().Add("WWW-Authenticate", `Basic`)
|
||||
apiErrorDefined(ctx, errUnauthorized)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user