add a newline to 404 body, looks better in curl
This commit is contained in:
parent
2281406f98
commit
67195c4b11
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue