diff --git a/src/web.rs b/src/web.rs index 324d10d..1601eb8 100644 --- a/src/web.rs +++ b/src/web.rs @@ -47,11 +47,11 @@ async fn handle_tar(req: HttpRequest, root: web::Data, web::Path(tail): let stream = crate::threaded_archiver::stream_tar_in_thread(fullpath) .map(Ok::<_, Error>); - let res = HttpResponse::Ok() + let response = HttpResponse::Ok() .content_type("application/x-tar") .streaming(stream); - Ok(res) + Ok(response) } const FAVICON_ICO: &[u8] = include_bytes!("favicon.png");