mirror of
https://codeberg.org/teddit/teddit
synced 2025-02-16 20:20:36 +01:00
fix mime type in POST import_prefs
This commit is contained in:
parent
d947182058
commit
d315051a7b
@ -173,7 +173,7 @@ preferenceRoutes.post('/export_prefs', (req, res, next) => {
|
|||||||
'Content-disposition',
|
'Content-disposition',
|
||||||
'attachment; filename=teddit_prefs.json'
|
'attachment; filename=teddit_prefs.json'
|
||||||
);
|
);
|
||||||
res.setHeader('Content-type', 'preferenceRouteslication/json');
|
res.setHeader('Content-type', 'application/json');
|
||||||
return res.send(export_data);
|
return res.send(export_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user