mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-12-09 03:11:14 +01:00
Send the Content-Type header for plugin-definitions.json in the right format
This commit is contained in:
parent
c407ad3d34
commit
8bf481f27b
@ -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…
x
Reference in New Issue
Block a user