Changed deprecated res.send(status) to res.sendStatus(status) (#1912)
This commit is contained in:
@@ -198,7 +198,7 @@ var allowCrossDomain = function(req, res, next) {
|
|||||||
|
|
||||||
// intercept OPTIONS method
|
// intercept OPTIONS method
|
||||||
if ('OPTIONS' == req.method) {
|
if ('OPTIONS' == req.method) {
|
||||||
res.send(200);
|
res.sendStatus(200);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
next();
|
next();
|
||||||
|
|||||||
Reference in New Issue
Block a user