fix(dispatch): don't silently 200 when auth failed

This commit is contained in:
alyssa 2025-01-08 05:21:44 +00:00
parent d2189dea73
commit ce8d6ed8d3

View file

@ -80,7 +80,7 @@ async fn dispatch(
) -> String {
// todo: fix
if req.auth != std::env::var("HTTP_AUTH_TOKEN").unwrap() {
return "".to_string();
panic!("bad auth");
}
let uri = match req.url.parse::<Uri>() {