Skip to content

Commit de9c34e

Browse files
committed
Fix Express deprecation warning
1 parent ba0450f commit de9c34e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ app.use(function (req, res, next) {
1414
res.header('Access-Control-Expose-Headers', 'Content-Length');
1515
res.header('Access-Control-Allow-Headers', 'Accept, Authorization, Content-Type, X-Requested-With, Range');
1616
if (req.method === 'OPTIONS') {
17-
return res.send(200);
17+
return res.sendStatus(200);
1818
} else {
1919
return next();
2020
}

0 commit comments

Comments
 (0)