aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorboastful-squirrel <boastful.squirrel@gmail.com>2019-05-01 16:29:16 +0000
committerboastful-squirrel <boastful.squirrel@gmail.com>2019-05-01 16:29:16 +0000
commit07870487c4ffb11865d7485c8fc826c1247fac34 (patch)
tree2890a194668167a95a73e14801d456964225cd6a /src
parentUse HTTP StatusCode for error title (diff)
downloadminiserve-07870487c4ffb11865d7485c8fc826c1247fac34.tar.gz
miniserve-07870487c4ffb11865d7485c8fc826c1247fac34.zip
Return to root when auth succeeds
Diffstat (limited to 'src')
-rw-r--r--src/auth.rs2
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(