diff options
Diffstat (limited to 'src')
-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 7b72b21..e8600fb 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -59,7 +59,7 @@ impl Middleware<crate::MiniserveConfig> for Auth { if auth_req.username != required_auth.username || auth_req.password != required_auth.password { - let new_resp = HttpResponse::Forbidden().finish(); + let new_resp = HttpResponse::Unauthorized().finish(); return Ok(Response::Done(new_resp)); } } else { |