Fix Missing Content-Type

This adds text/html content type which allows the `X-Content-Type-Options nosniff` header to be used without error on reverse proxies.
pull/1004/head
D34DC3N73R 3 years ago committed by GitHub
parent 99c5cf590e
commit 50079d2ab7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2152,6 +2152,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