From 9ee589008e29b0714ea277cc4036a6d5a4043747 Mon Sep 17 00:00:00 2001 From: Etienne Noel Date: Fri, 8 Mar 2024 21:01:00 -0800 Subject: [PATCH] - Updat.e --- packages/http/src/servers/file.http-server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/http/src/servers/file.http-server.ts b/packages/http/src/servers/file.http-server.ts index 6c6de25e..40504692 100644 --- a/packages/http/src/servers/file.http-server.ts +++ b/packages/http/src/servers/file.http-server.ts @@ -133,8 +133,8 @@ export class FileHttpServer { // if is a directory search for index file matching the extension if (fs.statSync(pathname).isDirectory()) { - ext = "html"; - pathname += `index.${ext}`; + ext = ".html"; + pathname += `index${ext}`; } // read file from file system