aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrinity-1686a <trinity.pointard@gmail.com>2021-12-15 15:05:36 +0100
committerAlex <alex@adnab.me>2021-12-15 15:05:36 +0100
commitca7b438f3fa2325776be267090db6f6925f6ca51 (patch)
tree60f061b77bc0f8eb01461a01f4849abbd885816e
parent1eb972b1ac8951faac234f56a30b34100d6ecff2 (diff)
downloadgarage-ca7b438f3fa2325776be267090db6f6925f6ca51.tar.gz
garage-ca7b438f3fa2325776be267090db6f6925f6ca51.zip
less strict ListBuckets (#178)
fix #175 Co-authored-by: Trinity Pointard <trinity.pointard@gmail.com> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/178 Co-authored-by: trinity-1686a <trinity.pointard@gmail.com> Co-committed-by: trinity-1686a <trinity.pointard@gmail.com>
-rw-r--r--src/api/s3_router.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/api/s3_router.rs b/src/api/s3_router.rs
index f205f310..4ce1d238 100644
--- a/src/api/s3_router.rs
+++ b/src/api/s3_router.rs
@@ -511,11 +511,7 @@ impl Endpoint {
let path = uri.path().trim_start_matches('/');
let query = uri.query();
if bucket.is_none() && path.is_empty() {
- if query.is_none() {
- return Ok(Self::ListBuckets);
- } else {
- return Err(Error::BadRequest("Invalid ListBuckets query".to_owned()));
- }
+ return Ok(Self::ListBuckets);
}
let (bucket, key) = if let Some(bucket) = bucket {