mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-18 18:50:58 +03:00
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:
@@ -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);
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user