Skip to content

Commit 05c59aa

Browse files
authored
Set json escape to true
1 parent 28389a8 commit 05c59aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ function errorHandler(error, res) {
1717
`);
1818
}
1919

20+
app.set('json escape', true);
21+
2022
app.use(morgan(':remote-addr :remote-user :method :url :status :res[content-length] - :response-time ms'));
2123
app.use((req, res, next) => {
2224
res.setHeader('Cache-Control', 'no-cache');

0 commit comments

Comments
 (0)