mirror of
https://ceregatti.org/git/daniel/dayzdockerserver.git
synced 2025-05-06 14:21:18 +00:00
Set the content type header for XML files.
This commit is contained in:
parent
87e5baf345
commit
6da2c62eea
1 changed files with 1 additions and 0 deletions
|
@ -217,6 +217,7 @@ app.get('/mod/:modId/:file', (req, res) => {
|
||||||
const file = req.params["file"]
|
const file = req.params["file"]
|
||||||
if (fs.existsSync(config.modDir + d + modId + d + file)) {
|
if (fs.existsSync(config.modDir + d + modId + d + file)) {
|
||||||
const contents = fs.readFileSync(config.modDir + d + modId + d + file)
|
const contents = fs.readFileSync(config.modDir + d + modId + d + file)
|
||||||
|
res.set('Content-type', 'application/xml')
|
||||||
res.send(contents)
|
res.send(contents)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue