Skip to content

Commit 59657dc

Browse files
authored
Merge pull request #46 from XhmikosR/patch-3
Set `json escape` to true
2 parents 0d09fb7 + 05c59aa commit 59657dc

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
@@ -18,6 +18,8 @@ function errorHandler(error, res) {
1818
`);
1919
}
2020

21+
app.set('json escape', true);
22+
2123
app.use(morgan(':remote-addr :remote-user :method :url :status :res[content-length] - :response-time ms'));
2224
app.use((req, res, next) => {
2325
res.setHeader('Cache-Control', 'public, max-age=0, must-revalidate');

0 commit comments

Comments
 (0)