diff options
author | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-05-01 16:29:16 +0000 |
---|---|---|
committer | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-05-01 16:29:16 +0000 |
commit | 07870487c4ffb11865d7485c8fc826c1247fac34 (patch) | |
tree | 2890a194668167a95a73e14801d456964225cd6a /src | |
parent | Use HTTP StatusCode for error title (diff) | |
download | miniserve-07870487c4ffb11865d7485c8fc826c1247fac34.tar.gz miniserve-07870487c4ffb11865d7485c8fc826c1247fac34.zip |
Return to root when auth succeeds
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 dbb501d..faf967c 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -147,7 +147,7 @@ fn build_unauthorized_response( } let return_path = match &req.state().random_route { Some(random_route) => format!("/{}", random_route), - None => req.path().to_string(), + None => "/".to_string(), }; renderer::render_error( |