From a8736826bfbd8ea7a7832402428cd522446e92e2 Mon Sep 17 00:00:00 2001 From: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Tue, 2 Jun 2020 21:14:06 +0200 Subject: [PATCH] Respond status 200 application/xml /api/posts/urls --- server/routes/api/posts.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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