Re-enable serving HTML

Fixes #94
This commit is contained in:
Michael Jackson 2018-05-15 18:21:09 -07:00
parent 3d463a14aa
commit 9a3aabda9f
1 changed files with 0 additions and 2 deletions

View File

@ -78,8 +78,6 @@ function serveFile(req, res) {
let contentType = getFileContentType(file);
if (contentType === "text/html") contentType = "text/plain"; // We can't serve HTML because bad people :(
if (contentType === "application/javascript" && req.query.module != null) {
// Serve a JavaScript module.
rewriteBareModuleIdentifiers(file, req.packageConfig, (error, code) => {