From c5a982de822506b29452aecc82d7bbc2de67db41 Mon Sep 17 00:00:00 2001 From: KevinDuffy94 Date: Thu, 25 Jul 2024 09:16:24 -0400 Subject: [PATCH] convert header to string --- router/src/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router/src/server.rs b/router/src/server.rs index 516a2ef617b..fa2ba001cf6 100644 --- a/router/src/server.rs +++ b/router/src/server.rs @@ -1815,7 +1815,7 @@ pub async fn run( request: axum::extract::Request, next: axum::middleware::Next| async move { match headers.get(AUTHORIZATION) { - Some(token) if token.to_lowercase() == api_key.to_lowercase() => { + Some(token) if token.to_str().to_lowercase() == api_key.to_lowercase() => { let response = next.run(request).await; Ok(response) }