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

@@ -884,7 +884,7 @@ pub async fn active_servers(
.head()
.headers()
.get("X-Master-Key")
.map_or(false, |it| it.as_bytes() == master_key.as_bytes())
.is_some_and(|it| it.as_bytes() == master_key.as_bytes())
{
return Err(ApiError::CustomAuthentication(
"Invalid master key".to_string(),