diff options
author | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-03-12 20:31:24 +0000 |
---|---|---|
committer | boasting-squirrel <boasting.squirrel@gmail.com> | 2019-03-12 20:31:24 +0000 |
commit | 4512377697ab82b5e23d007dd90dfa408d94aca9 (patch) | |
tree | 3df2055ab09d6085a4b479b0207388709fb39b9c /src/auth.rs | |
parent | Better error messages for invalid path (diff) | |
parent | Merge pull request #49 from svenstaro/dependabot/cargo/structopt-0.2.15 (diff) | |
download | miniserve-4512377697ab82b5e23d007dd90dfa408d94aca9.tar.gz miniserve-4512377697ab82b5e23d007dd90dfa408d94aca9.zip |
Merge branch 'master' into targz
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 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 { |