diff --git a/src/controllers/Metrics.php b/src/controllers/Metrics.php index ed39b76..502ec79 100644 --- a/src/controllers/Metrics.php +++ b/src/controllers/Metrics.php @@ -63,7 +63,7 @@ private function getAuthToken(Request $request): ?string { $authorization_header = $request->headers->getString('Authorization', ''); - $result = preg_match('/^Basic (?P\w+)$/', $authorization_header, $matches); + $result = preg_match('/^Basic (?P[\w=]+)$/', $authorization_header, $matches); if ($result === false || !isset($matches['token'])) { return null; }