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 1/2] 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
From 3d93b6ddb8f8e9315b86ec91290895b9d6a9be89 Mon Sep 17 00:00:00 2001
From: Raymon Zutekouw
Date: Mon, 8 Jun 2020 21:46:12 +0200
Subject: [PATCH 2/2] Bump websocket-extensions from 0.1.3 to 0.1.4 in /client
(#7)
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)
Signed-off-by: dependabot[bot]
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
---
client/package-lock.json | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/client/package-lock.json b/client/package-lock.json
index ea7c0e5..aa04064 100644
--- a/client/package-lock.json
+++ b/client/package-lock.json
@@ -12874,9 +12874,9 @@
}
},
"websocket-extensions": {
- "version": "0.1.3",
- "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.3.tgz",
- "integrity": "sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg==",
+ "version": "0.1.4",
+ "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz",
+ "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==",
"dev": true
},
"which": {