Browse Source

Merge pull request #504 from pelias/use_new_express_send_status_method

Use new express sendStatus method
pull/522/head
Julian Simioni 9 years ago
parent
commit
25e9d6f026
  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