Browse Source

Minor readability patch. (#17627)

tags/v1.16.0-rc1
Michael Grigoryan 2 years ago
parent
commit
47448083a1
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      services/auth/basic.go

+ 1
- 1
services/auth/basic.go View File

@@ -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