From c15959710b0e57578c484a6ad472950edfd5009f Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 20 Jan 2018 13:39:49 -0500 Subject: [PATCH] huh. not sure where this broke --- lib/utils/export.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/export.js b/lib/utils/export.js index 5bfa707..0b9cb26 100644 --- a/lib/utils/export.js +++ b/lib/utils/export.js @@ -38,7 +38,7 @@ module.exports = function() { let dest = OUTPUT_DIR + pathname; const type = res.headers.get('Content-Type'); - if (type.startsWith('text/html;')) dest += '/index.html'; + if (type.startsWith('text/html')) dest += '/index.html'; sander.writeFileSync(dest, body);