Merge pull request #1004 from D34DC3N73R/fix-missing-content-type

Fix Missing Content-Type
pull/976/merge
Tzahi12345 1 year ago committed by GitHub
commit 80e83ba817
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2161,6 +2161,8 @@ app.use(function(req, res, next) {
let index_path = path.join(__dirname, 'public', 'index.html');
res.setHeader('Content-Type', 'text/html');
fs.createReadStream(index_path).pipe(res);
});

Loading…
Cancel
Save