From 47448083a1b88201dcfa00ec06fb748f5ac18040 Mon Sep 17 00:00:00 2001 From: Michael Grigoryan <56165400+michaelgrigoryan25@users.noreply.github.com> Date: Sat, 13 Nov 2021 03:27:18 +0400 Subject: [PATCH] Minor readability patch. (#17627) --- services/auth/basic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/auth/basic.go b/services/auth/basic.go index 0c400b6b5329a..d7f889cbdc8e2 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 }