Skip to content
Snippets Groups Projects
Unverified Commit a0a52c4e authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #340 from HumanBrainProject/bugfix/brokenImageLinks

bugfix: broken link images
parents ac763703 81b8e088
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ const { compressionMiddleware } = require('nomiseco')
app.use(compressionMiddleware, express.static(PUBLIC_PATH))
const jsonMiddleware = (req, res, next) => {
res.set('Content-Type', 'application/json')
if (!res.get('Content-Type')) res.set('Content-Type', 'application/json')
next()
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment