less strict ListBuckets #178

Merged
lx merged 1 commit from trinity-1686a/garage:less-strict-list-bucket into main 2021-12-15 14:05:36 +00:00
Showing only changes of commit 680712514d - Show all commits

View file

@ -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 {