safekeeper: fix typo in allowlist for /profile/heap (#10186)

This commit is contained in:
Erik Grinaker
2024-12-18 16:51:53 +01:00
committed by GitHub
parent 1d12efc428
commit 1668d39b7c

View File

@@ -564,7 +564,7 @@ pub fn make_router(
if conf.http_auth.is_some() {
router = router.middleware(auth_middleware(|request| {
const ALLOWLIST_ROUTES: &[&str] =
&["/v1/status", "/metrics", "/profile/cpu", "profile/heap"];
&["/v1/status", "/metrics", "/profile/cpu", "/profile/heap"];
if ALLOWLIST_ROUTES.contains(&request.uri().path()) {
None
} else {