Skip to content

Commit 5b95831

Browse files
authored
API: Make BasicAuth Prefix case insensitive (#14106)
1 parent a9876bc commit 5b95831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auth/sso/basic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (b *Basic) VerifyAuthData(ctx *macaron.Context, sess session.Store) *models
5656
}
5757

5858
auths := strings.Fields(baHead)
59-
if len(auths) != 2 || auths[0] != "Basic" {
59+
if len(auths) != 2 || (auths[0] != "Basic" && auths[0] != "basic") {
6060
return nil
6161
}
6262

0 commit comments

Comments
 (0)