From e34036513eb49d7a15c203dda0bf1a8905631f33 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Wed, 19 Dec 2012 19:49:25 +0100 Subject: [PATCH] There's no utf8, but there's utf-8 --- src/node/hooks/i18n.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node/hooks/i18n.js b/src/node/hooks/i18n.js index 03094dad9..00d475855 100644 --- a/src/node/hooks/i18n.js +++ b/src/node/hooks/i18n.js @@ -110,7 +110,7 @@ exports.expressCreateServer = function(n, args) { //works with /locale/en and /locale/en.json requests var locale = req.params.locale.split('.')[0]; if (exports.availableLangs.hasOwnProperty(locale)) { - res.setHeader('Content-Type', 'application/json; charset=utf8'); + res.setHeader('Content-Type', 'application/json; charset=utf-8'); res.send('{"'+locale+'":'+JSON.stringify(locales[locale])+'}'); } else { res.send(404, 'Language not available'); @@ -118,7 +118,7 @@ exports.expressCreateServer = function(n, args) { }) args.app.get('/locales.json', function(req, res) { - res.setHeader('Content-Type', 'application/json; charset=utf8'); + res.setHeader('Content-Type', 'application/json; charset=utf-8'); res.send(localeIndex); })