let's use longer names :)
This commit is contained in:
parent
665f86af45
commit
2281406f98
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue