Changed deprecated res.send(status) to res.sendStatus(status) (#1912)

This commit is contained in:
Emad Ehsan
2016-05-28 14:26:53 +05:00
committed by Tyler Brock
parent 1487a73f16
commit 7d2929abe2

View File

@@ -198,7 +198,7 @@ var allowCrossDomain = function(req, res, next) {
// intercept OPTIONS method
if ('OPTIONS' == req.method) {
res.send(200);
res.sendStatus(200);
}
else {
next();