Skip to content

Commit 76fce86

Browse files
committed
Recognize ./index.html in tar files
1 parent a048e81 commit 76fce86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async function extractTar(tarFile) {
5252
extract.on("entry", (header, stream, next) => {
5353
stream.on("data", async data => {
5454
if (uploadedFileIsAllowed(header.name)) {
55-
if (!hasIndex && header.name === "index.html") {
55+
if (header.name === "index.html" || header.name === "./index.html") {
5656
hasIndex = true;
5757
}
5858
const filePath = `${uploadPath}/${header.name}`;

0 commit comments

Comments
 (0)