Skip to content

Commit

Permalink
fix: set ContentType on error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
xtuc committed Aug 10, 2019
1 parent 90dd417 commit e43ce63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/utils/responses.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ module.exports.sendError = function sendError(res, msg) {
onError(res);
}

res.set('Content-Type', 'text/html');
res.end(msg);
};

0 comments on commit e43ce63

Please sign in to comment.