Skip to content

Commit 94cb580

Browse files
mikayelgrStelios Malathouras
authored and
Stelios Malathouras
committed
Minor readability patch. (go-gitea#17627)
1 parent 58881f2 commit 94cb580

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)