Skip to content

Commit 7d2929a

Browse files
emadehsanTylerBrock
authored andcommitted
Changed deprecated res.send(status) to res.sendStatus(status) (#1912)
1 parent 1487a73 commit 7d2929a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middlewares.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ var allowCrossDomain = function(req, res, next) {
198198

199199
// intercept OPTIONS method
200200
if ('OPTIONS' == req.method) {
201-
res.send(200);
201+
res.sendStatus(200);
202202
}
203203
else {
204204
next();

0 commit comments

Comments
 (0)