fix 230, 231 - first draft

This commit is contained in:
A.Unger
2021-07-13 14:33:24 +02:00
parent ac49348b41
commit bfdcc0180c

View File

@@ -103,8 +103,8 @@ func (m basicAuth) isPublicLink(req *http.Request) bool {
}
func (m basicAuth) isBasicAuth(req *http.Request) bool {
login, password, ok := req.BasicAuth()
return m.enabled && ok && login != "" && password != ""
_, _, ok := req.BasicAuth()
return m.enabled && ok
}
type code int