From d315051a7b20205558b1979d4073c3a55dfa5d95 Mon Sep 17 00:00:00 2001 From: teddit Date: Sat, 29 Jan 2022 14:49:47 +0100 Subject: [PATCH] fix mime type in POST import_prefs --- routes/preferences.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/preferences.js b/routes/preferences.js index a6e67f2..28db6f5 100644 --- a/routes/preferences.js +++ b/routes/preferences.js @@ -173,7 +173,7 @@ preferenceRoutes.post('/export_prefs', (req, res, next) => { 'Content-disposition', 'attachment; filename=teddit_prefs.json' ); - res.setHeader('Content-type', 'preferenceRouteslication/json'); + res.setHeader('Content-type', 'application/json'); return res.send(export_data); }