From 10daa2982afc556df3f7ad78f9965b035c3126e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 12 Dec 2018 18:47:58 +0100 Subject: [PATCH] Fix file server crash (denoland/deno_std#20) Fix denoland/deno_std#19 Original: https://github.com/denoland/deno_std/commit/d9ab8eb0033ae73551e4979598293c5bd41b417d --- file_server.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/file_server.ts b/file_server.ts index 8159132b32..5cd87e2ec7 100755 --- a/file_server.ts +++ b/file_server.ts @@ -109,8 +109,7 @@ async function serveDir(req: ServerRequest, dirPath: string, dirName: string) { for (const info of fileInfos) { if (info.name === "index.html" && info.isFile()) { // in case index.html as dir... - await serveFile(req, info.path); - return; + return await serveFile(req, info.path); } // Yuck! let mode = null;