Skip to content

Commit

Permalink
fix: check for missing param
Browse files Browse the repository at this point in the history
  • Loading branch information
lostb1t authored Sep 16, 2023
1 parent 1e9df69 commit 28cbc41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ async fn should_skip(
// let proxy = depot.obtain::<Proxy<String>>().unwrap().clone().to_owned();

let params: PlexContext = req.extract().await.unwrap();
if params.product.clone().unwrap().to_lowercase() == "plexamp" {
if params.product.is_some() && params.product.clone().unwrap().to_lowercase() == "plexamp" {
let config: Config = Config::figment().extract().unwrap();
let proxy = Proxy::with_client(
config.host.clone().unwrap(),
Expand Down

0 comments on commit 28cbc41

Please sign in to comment.