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. 2
      middleware/options.js

2
middleware/options.js

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

Loading…
Cancel
Save