less strict ListBuckets
All checks were successful
continuous-integration/drone/pr Build is passing

fix #175
This commit is contained in:
Trinity Pointard 2021-12-15 14:31:01 +01:00
parent 1eb972b1ac
commit 680712514d

View file

@ -511,11 +511,7 @@ impl Endpoint {
let path = uri.path().trim_start_matches('/'); let path = uri.path().trim_start_matches('/');
let query = uri.query(); let query = uri.query();
if bucket.is_none() && path.is_empty() { if bucket.is_none() && path.is_empty() {
if query.is_none() {
return Ok(Self::ListBuckets); return Ok(Self::ListBuckets);
} else {
return Err(Error::BadRequest("Invalid ListBuckets query".to_owned()));
}
} }
let (bucket, key) = if let Some(bucket) = bucket { let (bucket, key) = if let Some(bucket) = bucket {