From fd529ccee9ae95073df92d3850a289b55169252a Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Thu, 14 Apr 2016 15:50:48 -0400 Subject: [PATCH] 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 ``` --- middleware/options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleware/options.js b/middleware/options.js index 57c0e1eb..f6ca8767 100644 --- a/middleware/options.js +++ b/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; \ No newline at end of file +module.exports = middleware;