diff options
Diffstat (limited to 'http/file_server.ts')
-rwxr-xr-x | http/file_server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http/file_server.ts b/http/file_server.ts index dfcd40cdd..77d0cf748 100755 --- a/http/file_server.ts +++ b/http/file_server.ts @@ -150,7 +150,7 @@ async function serveDir( const fileInfos = await readDir(dirPath); for (const fileInfo of fileInfos) { const filePath = posix.join(dirPath, fileInfo.name); - let fileUrl = posix.join(dirUrl, fileInfo.name); + const fileUrl = posix.join(dirUrl, fileInfo.name); if (fileInfo.name === "index.html" && fileInfo.isFile()) { // in case index.html as dir... return await serveFile(req, filePath); |