From f3e765b5783c1a48f28538dc61c314eeb388280f Mon Sep 17 00:00:00 2001 From: silt Date: Thu, 7 May 2026 01:29:07 +0000 Subject: [PATCH] stop stripping project and user prefixes --- src/bin/frontend/http_fe/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {