diff options
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/s3_router.rs | 6 |
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 { |