Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update services/auth/basic.go
  • Loading branch information
techknowlogick authored Nov 12, 2021
commit dfb4c1429342fa28130d1dd85ac554c30a104c85
2 changes: 1 addition & 1 deletion services/auth/basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (b *Basic) Verify(req *http.Request, w http.ResponseWriter, store DataStore

auths := strings.SplitN(baHead, " ", 2)
if len(auths) != 2 || (strings.ToLower(auths[0]) != "basic") {
return nil
return nil
}

uname, passwd, _ := base.BasicAuthDecode(auths[1])
Expand Down