diff --git a/src/bin/frontend/http_fe/mod.rs b/src/bin/frontend/http_fe/mod.rs index 1972446..2b965f8 100644 --- a/src/bin/frontend/http_fe/mod.rs +++ b/src/bin/frontend/http_fe/mod.rs @@ -407,7 +407,7 @@ impl<'a> ReqResp<'a> for (Request<'a>, Response<'_>) { self } } - (method, ["/", user, repo], params, _) if let Some(user) = user.strip_prefix('~') => { + (method, ["/", user, repo], params, _) if user.starts_with('~') => { if matches!(method, GET) { let revision = match params.as_ref().and_then(|x| x.iter().filter_map(|y| ["branch", "commit", "tag"].contains(&y.0).then(|| y)).last()) { Some(("branch", branch)) => Some(Revision::Branch(branch.to_string())), @@ -422,7 +422,7 @@ impl<'a> ReqResp<'a> for (Request<'a>, Response<'_>) { self } } - (method, ["/", project], _, _) if let Some(project) = project.strip_prefix('+') => { + (method, ["/", project], _, _) if project.starts_with('+') => { if matches!(method, GET) { todo!() } else {