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);