aboutsummaryrefslogtreecommitdiffstats
path: root/src/auth.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/auth.rs')
-rw-r--r--src/auth.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auth.rs b/src/auth.rs
index 48e36ce..c53d26a 100644
--- a/src/auth.rs
+++ b/src/auth.rs
@@ -88,7 +88,7 @@ impl Middleware<crate::MiniserveConfig> for Auth {
))));
}
};
- if match_auth(auth_req, required_auth) {
+ if !match_auth(auth_req, required_auth) {
let new_resp = HttpResponse::Unauthorized().finish();
return Ok(Response::Done(new_resp));
}