fix lints
This commit is contained in:
@ -49,7 +49,7 @@ fn admin(tx: mpsc::Sender<bool>) -> Router {
|
||||
if let Ok(secret) = std::env::var("ADMIN_SECRET") {
|
||||
println!("ADMIN_SECRET: {secret}");
|
||||
match req.headers().get("Authorization") {
|
||||
Some(key) if secret == key.to_owned() => (),
|
||||
Some(key) if secret == *key => (),
|
||||
_ => {
|
||||
return Response::builder()
|
||||
.status(StatusCode::UNAUTHORIZED)
|
||||
|
||||
Reference in New Issue
Block a user