From 791a80b3373b70f20c54eec060f69102b05a6723 Mon Sep 17 00:00:00 2001 From: teddit Date: Sat, 29 Jan 2022 14:35:03 +0100 Subject: [PATCH] fix invalid mime type (fixes #291) --- routes/preferences.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/preferences.js b/routes/preferences.js index 0a780e1..a6e67f2 100644 --- a/routes/preferences.js +++ b/routes/preferences.js @@ -204,7 +204,7 @@ preferenceRoutes.post('/import_prefs', (req, res, next) => { body = body.toString(); try { let json = body - .split('Content-Type: preferenceRouteslication/json')[1] + .split('Content-Type: application/json')[1] .trim() .split('--')[0]; let prefs = JSON.parse(json);