force XML content type

This commit is contained in:
Jonathan Barrow 2021-10-17 13:08:36 -04:00
parent 43a55cae43
commit 290bbfcc04

View File

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