mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 22:23:50 +03:00
API: Make BasicAuth Prefix case insensitive (#14106)
This commit is contained in:
parent
a9876bca82
commit
5b958315c1
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ func (b *Basic) VerifyAuthData(ctx *macaron.Context, sess session.Store) *models
|
|||
}
|
||||
|
||||
auths := strings.Fields(baHead)
|
||||
if len(auths) != 2 || auths[0] != "Basic" {
|
||||
if len(auths) != 2 || (auths[0] != "Basic" && auths[0] != "basic") {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue