Support new delphi response type

This commit is contained in:
Jai A
2025-01-16 16:40:13 -08:00
parent 227386bb0d
commit 5c8e7a8b38
5 changed files with 28 additions and 16 deletions

View File

@@ -8,5 +8,5 @@ pub fn admin_key_guard(ctx: &GuardContext) -> bool {
ctx.head()
.headers()
.get(ADMIN_KEY_HEADER)
.map_or(false, |it| it.as_bytes() == admin_key.as_bytes())
.is_some_and(|it| it.as_bytes() == admin_key.as_bytes())
}