From 1c021087fb2a46700adbe5a6a1916520fc90742d Mon Sep 17 00:00:00 2001 From: john Date: Sun, 15 Jun 2025 11:03:57 +0800 Subject: [PATCH] fix the tar file download error --- src/web.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web.rs b/src/web.rs index 593cbab..0c2655a 100644 --- a/src/web.rs +++ b/src/web.rs @@ -15,7 +15,7 @@ pub async fn run(bind_addr: &str, root: &PathBuf) -> std::io::Result<()> { .files_listing_renderer(crate::directory_listing::directory_listing); App::new() - .app_data(root_.clone()) + .app_data(web::Data::new(root_.clone())) .wrap(middleware::Logger::default()) .service(favicon_ico) .service(handle_tar)