mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 09:40:10 +00:00
fix(dispatch): don't silently 200 when auth failed
This commit is contained in:
parent
d2189dea73
commit
ce8d6ed8d3
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ async fn dispatch(
|
||||||
) -> String {
|
) -> String {
|
||||||
// todo: fix
|
// todo: fix
|
||||||
if req.auth != std::env::var("HTTP_AUTH_TOKEN").unwrap() {
|
if req.auth != std::env::var("HTTP_AUTH_TOKEN").unwrap() {
|
||||||
return "".to_string();
|
panic!("bad auth");
|
||||||
}
|
}
|
||||||
|
|
||||||
let uri = match req.url.parse::<Uri>() {
|
let uri = match req.url.parse::<Uri>() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue