From 67195c4b11fb7bc746c5781a8e47f87943e5eefa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=98=D0=B0=D0=BD=20=D0=93=D0=B5=D0=BE?= =?UTF-8?q?=D1=80=D0=B3=D0=B8=D0=B5=D0=B2=D1=81=D0=BA=D0=B8?= Date: Sun, 20 Sep 2020 18:58:08 +0200 Subject: [PATCH] add a newline to 404 body, looks better in curl --- src/web.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web.rs b/src/web.rs index 1601eb8..8f3336c 100644 --- a/src/web.rs +++ b/src/web.rs @@ -42,7 +42,7 @@ async fn handle_tar(req: HttpRequest, root: web::Data, 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)