Explorar el Código

Remove deprecated method

Matt Coles hace 9 años
padre
commit
b4ccf0566c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -18,7 +18,7 @@ scheduler.register_existing_events();
18 18
 var auth = function (req, res, next) {
19 19
   function unauthorized(res) {
20 20
     res.set('WWW-Authenticate', 'Basic realm=Authorization Required');
21
-    return res.send(401);
21
+    return res.sendStatus(401);
22 22
   };
23 23
 
24 24
   var user = basic_auth(req);