diff --git a/src/api.rs b/src/api.rs index 768eb54..a70f373 100644 --- a/src/api.rs +++ b/src/api.rs @@ -86,7 +86,8 @@ fn write_json_body(res: &mut Response, json_body: impl serde::Serialize) { async fn ping(req: &Request, res: &mut Response, depot: &mut Depot) { let bot_username = req .param::("bot_username") - .expect("The path param is required"); + .expect("The path param is required") + .to_lowercase(); let app_state = depot .obtain::>() .expect("The app state is injected");