fix invalid mime type (fixes #291)

This commit is contained in:
teddit 2022-01-29 14:35:03 +01:00
parent 301774ce8d
commit 791a80b337
1 changed files with 1 additions and 1 deletions

View File

@ -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);