add support for vhost/dns style bucket access #154

Merged
lx merged 6 commits from trinity-1686a/garage:vhost-style into main 2021-11-16 14:41:41 +00:00
Showing only changes of commit 5bd9329391 - Show all commits

View file

@ -98,7 +98,7 @@ async fn handler_inner(garage: Arc<Garage>, req: Request<Body>) -> Result<Respon
.s3_api
.root_domain
.as_ref()
.and_then(|root_domain| host_to_bucket(&host, &root_domain));
.and_then(|root_domain| host_to_bucket(&host, root_domain));
if path == "/" && bucket.is_none() {
return handle_list_buckets(&api_key);