Send the Content-Type header for plugin-definitions.json in the right format
This commit is contained in:
parent
04f3faac4b
commit
ef248555aa
|
@ -35,7 +35,7 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
||||||
// serve plugin definitions
|
// serve plugin definitions
|
||||||
// not very static, but served here so that client can do require("pluginfw/static/js/plugin-definitions.js");
|
// 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) {
|
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.write(JSON.stringify({"plugins": plugins.plugins, "parts": plugins.parts}));
|
||||||
res.end();
|
res.end();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue