From ce653ceebb0c96c9e137fe0b6e22bb68086b8c81 Mon Sep 17 00:00:00 2001 From: Cassie Tarakajian Date: Wed, 15 Apr 2020 17:39:28 -0400 Subject: [PATCH] Fixes #850: 503 error when downloading sketch --- server/controllers/project.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/project.controller.js b/server/controllers/project.controller.js index bf59a865..1e15619b 100644 --- a/server/controllers/project.controller.js +++ b/server/controllers/project.controller.js @@ -167,7 +167,7 @@ export function projectForUserExists(username, projectId, callback) { } function bundleExternalLibs(project, zip, callback) { - const indexHtml = project.files.find(file => file.name === 'index.html'); + const indexHtml = project.files.find(file => file.name.match(/\.html$/)); let numScriptsResolved = 0; let numScriptTags = 0;