diff --git a/server/routes/api/posts.js b/server/routes/api/posts.js index 8b34a49..e1514d7 100644 --- a/server/routes/api/posts.js +++ b/server/routes/api/posts.js @@ -78,7 +78,9 @@ routes.set('/urls', async (req, res) => { ).join("\n") const xml = `\r ${urls}\n\r` - res.send(xml) + + res.header('Content-Type', 'application/xml') + res.status(200).send(xml) }) module.exports = routes