diff options
Diffstat (limited to 'src/web')
-rw-r--r-- | src/web/web_server.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/web/web_server.rs b/src/web/web_server.rs index cc6eed57..f13f289e 100644 --- a/src/web/web_server.rs +++ b/src/web/web_server.rs @@ -86,9 +86,8 @@ async fn serve_file(garage: Arc<Garage>, req: Request<Body>) -> Result<Response< .bucket_alias_table .get(&EmptyKey, &bucket_name.to_string()) .await? - .map(|x| x.state.take().into_option()) + .map(|x| x.state.take()) .flatten() - .map(|param| param.bucket_id) .ok_or(Error::NotFound)?; // Check bucket isn't deleted and has website access enabled |