add a newline to 404 body, looks better in curl

This commit is contained in:
Дамјан Георгиевски 2020-09-20 18:58:08 +02:00
parent 2281406f98
commit 67195c4b11

View file

@ -42,7 +42,7 @@ async fn handle_tar(req: HttpRequest, root: web::Data<PathBuf>, web::Path(tail):
}
if !(fullpath.is_dir()) {
return Ok(HttpResponse::NotFound().body("Directory not found"));
return Ok(HttpResponse::NotFound().body("Directory not found\n"));
}
let stream = crate::threaded_archiver::stream_tar_in_thread(fullpath)