mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(plugins) set content-type (#230)
This commit is contained in:
parent
3bac819760
commit
e4caeb66b4
1 changed files with 2 additions and 0 deletions
|
|
@ -7,6 +7,8 @@ module.exports = currify((plugins, req, res, next) => {
|
|||
if (req.url !== '/plugins.js')
|
||||
return next();
|
||||
|
||||
res.setHeader('content-type', 'application/javascript; charset=UTF-8');
|
||||
|
||||
if (!plugins || !plugins.length)
|
||||
return res.send('');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue