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.
This commit is contained in:
D34DC3N73R
2023-09-02 23:43:01 -07:00
committed by GitHub
parent 99c5cf590e
commit 50079d2ab7

View File

@@ -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);
});