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. 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