Skip to content

Commit 4744808

Browse files
authoredNov 12, 2021
Minor readability patch. (#17627)
1 parent df64fa4 commit 4744808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎services/auth/basic.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (b *Basic) Verify(req *http.Request, w http.ResponseWriter, store DataStore
5050
}
5151

5252
auths := strings.SplitN(baHead, " ", 2)
53-
if len(auths) != 2 || (auths[0] != "Basic" && auths[0] != "basic") {
53+
if len(auths) != 2 || (strings.ToLower(auths[0]) != "basic") {
5454
return nil
5555
}
5656

0 commit comments

Comments
 (0)
Please sign in to comment.