Skip to content

Commit

Permalink
Merge pull request #679 from magieno/update-cli-to-use-data-mapper
Browse files Browse the repository at this point in the history
- Update.
  • Loading branch information
etiennenoel authored Mar 9, 2024
2 parents f36eac2 + 0a836e8 commit 650b0a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/http/src/servers/file.http-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ export class FileHttpServer {
}

// if is a directory search for index file matching the extension
if (fs.statSync(pathname).isDirectory()) pathname += 'index' + ext;
if (fs.statSync(pathname).isDirectory()) {
pathname += 'index.html';
}

// read file from file system
fs.readFile(pathname, function(err, data){
Expand Down

0 comments on commit 650b0a8

Please sign in to comment.