From ce8d6ed8d34b4268abd52a61035360d79a008f1a Mon Sep 17 00:00:00 2001 From: alyssa Date: Wed, 8 Jan 2025 05:21:44 +0000 Subject: [PATCH] fix(dispatch): don't silently 200 when auth failed --- crates/dispatch/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/dispatch/src/main.rs b/crates/dispatch/src/main.rs index c61ea38e..51c73577 100644 --- a/crates/dispatch/src/main.rs +++ b/crates/dispatch/src/main.rs @@ -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::() {