mirror of
https://codeberg.org/teddit/teddit.git
synced 2026-03-05 13:30:33 -05:00
fix invalid mime type (fixes #291)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user