There's no utf8, but there's utf-8

pull/1297/head
Marcel Klehr 2012-12-19 19:49:25 +01:00
parent 3c3c1630b1
commit e34036513e
1 changed files with 2 additions and 2 deletions

View File

@ -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);
})