aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3_list.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-03-15 14:46:37 +0100
committerAlex Auvolat <alex@adnab.me>2021-03-15 14:46:37 +0100
commitbdcbdd1cd854bd8125458af0ac20b8682f810967 (patch)
treea0348d286ffc6217f085b379a7abe3ca03ee73ab /src/api/s3_list.rs
parent9b118160a8b668b376d25ac16b097bce050f8b67 (diff)
downloadgarage-bdcbdd1cd854bd8125458af0ac20b8682f810967.tar.gz
garage-bdcbdd1cd854bd8125458af0ac20b8682f810967.zip
Fix list API bug
Diffstat (limited to 'src/api/s3_list.rs')
-rw-r--r--src/api/s3_list.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/s3_list.rs b/src/api/s3_list.rs
index 98d774db..16d96a49 100644
--- a/src/api/s3_list.rs
+++ b/src/api/s3_list.rs
@@ -42,7 +42,7 @@ pub fn parse_list_objects_query(
Ok(ListObjectsQuery {
is_v2: params.get("list-type").map(|x| x == "2").unwrap_or(false),
bucket: bucket.to_string(),
- delimiter: params.get("delimiter").cloned(),
+ delimiter: params.get("delimiter").filter(|x| !x.is_empty()).cloned(),
max_keys: params
.get("max-keys")
.map(|x| {