Send the Content-Type header for plugin-definitions.json in the right format

This commit is contained in:
Matthias Bartelmeß 2012-03-24 13:28:17 +01:00
parent 04f3faac4b
commit ef248555aa
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ exports.expressCreateServer = function (hook_name, args, cb) {
// serve plugin definitions
// not very static, but served here so that client can do require("pluginfw/static/js/plugin-definitions.js");
args.app.get('/pluginfw/plugin-definitions.json', function (req, res, next) {
res.header("Content-Type","application/json; charset: utf-8");
res.header("Content-Type","application/json; charset=utf-8");
res.write(JSON.stringify({"plugins": plugins.plugins, "parts": plugins.parts}));
res.end();
});