Browse Source

Use new express sendStatus method

According to a message on the console:

```
express deprecated res.send(status): Use res.sendStatus(status) instead
middleware/options.js:12:9
```
pull/504/head
Julian Simioni 9 years ago
parent
commit
fd529ccee9
No known key found for this signature in database
GPG Key ID: 6DAD08919FDBF563
  1. 4
      middleware/options.js

4
middleware/options.js

@ -9,10 +9,10 @@
function middleware(req, res, next){
if( req.method === 'OPTIONS' ){
res.send(200);
res.sendStatus(200);
} else {
next();
}
}
module.exports = middleware;
module.exports = middleware;

Loading…
Cancel
Save