mirror of
https://github.com/denoland/deno.git
synced 2025-01-05 13:59:01 -05:00
parent
dbff42070b
commit
d9ab8eb003
1 changed files with 1 additions and 2 deletions
|
@ -109,8 +109,7 @@ async function serveDir(req: ServerRequest, dirPath: string, dirName: string) {
|
||||||
for (const info of fileInfos) {
|
for (const info of fileInfos) {
|
||||||
if (info.name === "index.html" && info.isFile()) {
|
if (info.name === "index.html" && info.isFile()) {
|
||||||
// in case index.html as dir...
|
// in case index.html as dir...
|
||||||
await serveFile(req, info.path);
|
return await serveFile(req, info.path);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
// Yuck!
|
// Yuck!
|
||||||
let mode = null;
|
let mode = null;
|
||||||
|
|
Loading…
Reference in a new issue