let's use longer names :)

This commit is contained in:
Дамјан Георгиевски 2020-09-20 18:57:16 +02:00
parent 665f86af45
commit 2281406f98

View file

@ -47,11 +47,11 @@ async fn handle_tar(req: HttpRequest, root: web::Data<PathBuf>, 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");