Skip to content
Snippets Groups Projects
Commit 81b8e088 authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: broken link images

parent c1b3a7f2
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