diff options
author | metamuffin <metamuffin@disroot.org> | 2023-09-25 17:42:15 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-09-25 17:42:15 +0200 |
commit | 7efece270151d8a22e3d5f209cf9707d989c4ac5 (patch) | |
tree | bf6fe4e1433b0f83676a07c5924c53ca0a403aa0 /server/src/routes | |
parent | 95125ad3a02eb561a41d8b046876cc9a375feb8d (diff) | |
download | jellything-7efece270151d8a22e3d5f209cf9707d989c4ac5.tar jellything-7efece270151d8a22e3d5f209cf9707d989c4ac5.tar.bz2 jellything-7efece270151d8a22e3d5f209cf9707d989c4ac5.tar.zst |
move deps to workspace and update rocket to master
Diffstat (limited to 'server/src/routes')
-rw-r--r-- | server/src/routes/stream.rs | 2 | ||||
-rw-r--r-- | server/src/routes/ui/account/session/guard.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/server/src/routes/stream.rs b/server/src/routes/stream.rs index 7e26500..e920341 100644 --- a/server/src/routes/stream.rs +++ b/server/src/routes/stream.rs @@ -176,7 +176,7 @@ impl<'r> FromRequest<'r> for RequestRange { Ok(v) => rocket::outcome::Outcome::Success(v), Err(e) => rocket::outcome::Outcome::Failure((Status::BadRequest, e)), }, - None => rocket::outcome::Outcome::Forward(()), + None => rocket::outcome::Outcome::Forward(Status::Ok), } } } diff --git a/server/src/routes/ui/account/session/guard.rs b/server/src/routes/ui/account/session/guard.rs index 19d68ad..ae1ebd3 100644 --- a/server/src/routes/ui/account/session/guard.rs +++ b/server/src/routes/ui/account/session/guard.rs @@ -52,7 +52,7 @@ impl<'r> FromRequest<'r> for Session { Ok(x) => Outcome::Success(x), Err(e) => { warn!("authentificated route rejected: {e:?}"); - Outcome::Forward(()) + Outcome::Forward(Status::Unauthorized) } } } @@ -77,7 +77,7 @@ impl<'r> FromRequest<'r> for AdminSession { } Err(e) => { warn!("authentificated route rejected: {e:?}"); - Outcome::Forward(()) + Outcome::Forward(Status::Unauthorized) } } } |