mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-09 06:09:23 +00:00
Remove leading / in keys; better delimiter handling
This commit is contained in:
@@ -78,6 +78,7 @@ async fn handler_inner(
|
||||
let (bucket, key) = match path.find('/') {
|
||||
Some(i) => {
|
||||
let (bucket, key) = path.split_at(i);
|
||||
let key = key.trim_start_matches('/');
|
||||
(bucket, Some(key))
|
||||
}
|
||||
None => (path, None),
|
||||
|
||||
Reference in New Issue
Block a user