mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-07-04 09:00:57 -05:00
force XML content type
This commit is contained in:
parent
43a55cae43
commit
290bbfcc04
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user