From e43ce634f74e2bd6e5038f8444f2d7e028871bcd Mon Sep 17 00:00:00 2001 From: Sven Sauleau Date: Sat, 10 Aug 2019 17:07:48 +0100 Subject: [PATCH] fix: set ContentType on error pages --- server/utils/responses.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/utils/responses.js b/server/utils/responses.js index 3746a40..5b5ca1e 100644 --- a/server/utils/responses.js +++ b/server/utils/responses.js @@ -17,5 +17,6 @@ module.exports.sendError = function sendError(res, msg) { onError(res); } + res.set('Content-Type', 'text/html'); res.end(msg); };