From d85aed0c587dc3529419519cde4159e6e11d46c0 Mon Sep 17 00:00:00 2001 From: Stefan Bohacek Date: Thu, 31 Aug 2023 08:49:07 -0400 Subject: [PATCH] Fixed JSON mime type for Safari. --- routes/extract-data.js | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/extract-data.js b/routes/extract-data.js index 459d562..3872ca0 100644 --- a/routes/extract-data.js +++ b/routes/extract-data.js @@ -42,6 +42,7 @@ router.post("/", upload, async (req, res) => { data.format = 'mastodon'; break; case 'text/plain': + case 'application/json': if (file.originalname.endsWith('.json')){ const jsonData = JSON.parse(req.file.buffer.toString()); data.outbox = jsonData;