Minor readability patch. (#17627)

tokarchuk/v1.17
Michael Grigoryan 3 years ago committed by GitHub
parent df64fa4865
commit 47448083a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      services/auth/basic.go

@ -50,7 +50,7 @@ func (b *Basic) Verify(req *http.Request, w http.ResponseWriter, store DataStore
}
auths := strings.SplitN(baHead, " ", 2)
if len(auths) != 2 || (auths[0] != "Basic" && auths[0] != "basic") {
if len(auths) != 2 || (strings.ToLower(auths[0]) != "basic") {
return nil
}

Loading…
Cancel
Save