aboutsummaryrefslogtreecommitdiffstats
path: root/src/auth.rs
diff options
context:
space:
mode:
authorboasting-squirrel <boasting.squirrel@gmail.com>2019-03-12 20:31:24 +0000
committerboasting-squirrel <boasting.squirrel@gmail.com>2019-03-12 20:31:24 +0000
commit4512377697ab82b5e23d007dd90dfa408d94aca9 (patch)
tree3df2055ab09d6085a4b479b0207388709fb39b9c /src/auth.rs
parentBetter error messages for invalid path (diff)
parentMerge pull request #49 from svenstaro/dependabot/cargo/structopt-0.2.15 (diff)
downloadminiserve-4512377697ab82b5e23d007dd90dfa408d94aca9.tar.gz
miniserve-4512377697ab82b5e23d007dd90dfa408d94aca9.zip
Merge branch 'master' into targz
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 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 {