diff --git a/proxy/pkg/middleware/basic_auth.go b/proxy/pkg/middleware/basic_auth.go index 3a63b86847..83e562da58 100644 --- a/proxy/pkg/middleware/basic_auth.go +++ b/proxy/pkg/middleware/basic_auth.go @@ -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