summaryrefslogtreecommitdiff
path: root/src/cache.rs
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2024-08-17 01:23:36 +0200
committerpennae <github@quasiparticle.net>2024-08-17 01:23:36 +0200
commit22711c21d0213ae78132c28b56be98f9d53af456 (patch)
treed4038d44a3c372f806444a556d97b3658efb1338 /src/cache.rs
parent231b3fcc43fec88c204cc3b8c5a29c2437690f01 (diff)
downloadminor-skulk-main.tar.gz
minor-skulk-main.tar.xz
minor-skulk-main.zip
update for depsHEADmain
Diffstat (limited to 'src/cache.rs')
-rw-r--r--src/cache.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cache.rs b/src/cache.rs
index 680d9da..3319835 100644
--- a/src/cache.rs
+++ b/src/cache.rs
@@ -1,7 +1,7 @@
use std::borrow::Cow;
use rocket::{
- http::Header,
+ http::{Header, Status},
request::{self, FromRequest},
response::{self, Responder},
Request,
@@ -36,7 +36,7 @@ impl<'r> FromRequest<'r> for IfNoneMatch<'r> {
async fn from_request(req: &'r Request<'_>) -> request::Outcome<Self, Self::Error> {
match req.headers().get_one("if-none-match") {
Some(h) => request::Outcome::Success(Self(h)),
- None => request::Outcome::Forward(()),
+ None => request::Outcome::Forward(Status::Ok),
}
}
}