Преглед на файлове

Remove deprecated method

Matt Coles преди 9 години
родител
ревизия
b4ccf0566c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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);