fix invalid mime type (fixes #291)
This commit is contained in:
parent
301774ce8d
commit
791a80b337
|
@ -204,7 +204,7 @@ preferenceRoutes.post('/import_prefs', (req, res, next) => {
|
||||||
body = body.toString();
|
body = body.toString();
|
||||||
try {
|
try {
|
||||||
let json = body
|
let json = body
|
||||||
.split('Content-Type: preferenceRouteslication/json')[1]
|
.split('Content-Type: application/json')[1]
|
||||||
.trim()
|
.trim()
|
||||||
.split('--')[0];
|
.split('--')[0];
|
||||||
let prefs = JSON.parse(json);
|
let prefs = JSON.parse(json);
|
||||||
|
|
Loading…
Reference in New Issue