We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21a41b5 commit a1c2a2fCopy full SHA for a1c2a2f
1 file changed
auth/common.go
@@ -39,6 +39,9 @@ func requireBasicAuth(ctx context.Context, wr http.ResponseWriter, req *http.Req
39
}
40
41
func tryValid(auth Auth, logger *clog.CondLogger, user, password, userAddr string) bool {
42
+ if auth == nil {
43
+ return false
44
+ }
45
if validator, ok := auth.(interface {
46
Valid(string, string, string) bool
47
}); ok {
0 commit comments