From ad2ad76e6b4e285e0d33d14c556d8d60137b9d23 Mon Sep 17 00:00:00 2001 From: khai96_ Date: Fri, 19 Apr 2019 20:30:17 +0700 Subject: Fix false positive --- src/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 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)); } -- cgit v1.2.3