mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-08-19 07:36:44 -05:00
force XML content type
This commit is contained in:
@@ -12,6 +12,7 @@ npts.get('/p01/tasksheet/:id/:hash/:fileName', (request, response) => {
|
||||
const tasksheetPath = path.normalize(`${__dirname}/../../cdn/tasksheet/${id}/${hash}/${fileName}`);
|
||||
|
||||
if (fs.existsSync(tasksheetPath)) {
|
||||
response.set('Content-Type', 'text/xml');
|
||||
response.sendFile(tasksheetPath);
|
||||
} else {
|
||||
response.sendStatus(404);
|
||||
|
||||
Reference in New Issue
Block a user