aboutsummaryrefslogtreecommitdiff
path: root/src/api/api_server.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/api_server.rs')
-rw-r--r--src/api/api_server.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/api_server.rs b/src/api/api_server.rs
index f7ca156d..58ef9460 100644
--- a/src/api/api_server.rs
+++ b/src/api/api_server.rs
@@ -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),