Skip to content

Commit

Permalink
- Updat.e
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennenoel committed Mar 9, 2024
1 parent 5292420 commit 9ee5890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/http/src/servers/file.http-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ee5890

Please sign in to comment.