diff options
author | khai96_ <hvksmr1996@gmail.com> | 2019-04-19 13:30:17 +0000 |
---|---|---|
committer | khai96_ <hvksmr1996@gmail.com> | 2019-04-19 13:30:17 +0000 |
commit | ad2ad76e6b4e285e0d33d14c556d8d60137b9d23 (patch) | |
tree | 3ccbb94cff55564a34914800b8b3a05121f0f65f /src/auth.rs | |
parent | Create get_hash_hex (diff) | |
download | miniserve-ad2ad76e6b4e285e0d33d14c556d8d60137b9d23.tar.gz miniserve-ad2ad76e6b4e285e0d33d14c556d8d60137b9d23.zip |
Fix false positive
Diffstat (limited to 'src/auth.rs')
-rw-r--r-- | src/auth.rs | 2 |
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)); } |