diff --git a/packages/http/src/servers/file.http-server.ts b/packages/http/src/servers/file.http-server.ts index 40dc244e..66a64f48 100644 --- a/packages/http/src/servers/file.http-server.ts +++ b/packages/http/src/servers/file.http-server.ts @@ -132,7 +132,7 @@ 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' + ext; // read file from file system fs.readFile(pathname, function(err, data){