diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2018-12-12 18:47:58 +0100 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-12-12 12:47:58 -0500 |
| commit | 10daa2982afc556df3f7ad78f9965b035c3126e1 (patch) | |
| tree | eb48a1644b066c27521794cc469e69e5f15a7b84 | |
| parent | c4e20b746ffcfc3b2845584c8ea89ec7bc8f67eb (diff) | |
Fix file server crash (denoland/deno_std#20)
Fix denoland/deno_std#19
Original: https://github.com/denoland/deno_std/commit/d9ab8eb0033ae73551e4979598293c5bd41b417d
| -rwxr-xr-x | file_server.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/file_server.ts b/file_server.ts index 8159132b3..5cd87e2ec 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; |
