From ba8939b240f5e1a5e68108bc188b3ac5edc7ef30 Mon Sep 17 00:00:00 2001 From: Bram Neijt Date: Wed, 7 Apr 2021 21:47:15 +0200 Subject: [PATCH] If it's a directory, serve index.html instead (#1426) --- src/cmd/serve.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/cmd/serve.rs b/src/cmd/serve.rs index 86762efe..6f040d87 100644 --- a/src/cmd/serve.rs +++ b/src/cmd/serve.rs @@ -107,9 +107,16 @@ async fn handle_request(req: Request, mut root: PathBuf) -> Result