Skip to content

Commit ae0c3e7

Browse files
committed
hotfix
1 parent 9dc21e8 commit ae0c3e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ app.use('/public', express.static(staticDir));
8686
if (!config.debug) {
8787
app.use(function (req, res, next) {
8888
if (req.path.indexOf('/api') === -1) {
89-
return next(csurf());
89+
csurf()(req, res, next);
90+
return;
9091
}
9192
next();
9293
});

0 commit comments

Comments
 (0)