1
Fork 0

ContainerRegistry - removed Basic Auth header (#19735)

* Removed Basic Auth header.

* Fixed test.
This commit is contained in:
KN4CK3R 2022-05-17 13:58:42 +02:00 committed by GitHub
parent 6d54799bbc
commit 9ea9206406
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View file

@ -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)
}
}