diff --git a/l402/header.go b/l402/header.go index 3470bd2..bca5419 100644 --- a/l402/header.go +++ b/l402/header.go @@ -56,9 +56,6 @@ func FromHeader(header *http.Header) (*macaroon.Macaroon, lntypes.Preimage, erro for _, authHeader := range authHeaders { log.Debugf("Trying to authorize with header value "+ "[%s].", authHeader) - if !authRegex.MatchString(authHeader) { - continue - } matches = authRegex.FindStringSubmatch(authHeader) if len(matches) != 4 { continue