aboutsummaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorMichael Grigoryan <56165400+michaelgrigoryan25@users.noreply.github.com>2021-11-13 03:27:18 +0400
committerGitHub <noreply@github.com>2021-11-12 18:27:18 -0500
commit47448083a1b88201dcfa00ec06fb748f5ac18040 (patch)
tree97bc0749ace2c3fd7cf152e6a85002fc05299fba /services
parentdf64fa486555de6f403a795fd16c2e9e1d59e535 (diff)
downloadgitea-47448083a1b88201dcfa00ec06fb748f5ac18040.tar.gz
gitea-47448083a1b88201dcfa00ec06fb748f5ac18040.zip
Minor readability patch. (#17627)
Diffstat (limited to 'services')
-rw-r--r--services/auth/basic.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/auth/basic.go b/services/auth/basic.go
index 0c400b6b53..d7f889cbdc 100644
--- a/services/auth/basic.go
+++ b/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
}