소스 검색

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