From 751a4f9bc99b463179941c27166b6298f434d027 Mon Sep 17 00:00:00 2001 From: spiral Date: Sat, 18 Mar 2023 23:14:16 -0400 Subject: [PATCH] typo --- services/api/src/middleware/ignore_invalid_routes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/api/src/middleware/ignore_invalid_routes.rs b/services/api/src/middleware/ignore_invalid_routes.rs index ec864a52..2b6699e2 100644 --- a/services/api/src/middleware/ignore_invalid_routes.rs +++ b/services/api/src/middleware/ignore_invalid_routes.rs @@ -54,7 +54,7 @@ pub async fn ignore_invalid_routes(request: Request, next: Next) -> Res // but "unknown" isn't really a valid user-agent else if user_agent == "unknown" { // please set a valid user-agent - return StatusCode::FORBIDDEN.into_response(); + return StatusCode::BAD_REQUEST.into_response(); } else { next.run(request).await }