소스 검색

Update server.js

Ignore token if not configured
Jairo Caro-Accino Viciana 7 년 전
부모
커밋
5012793f23
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/server.js

+ 1 - 1
lib/server.js

@@ -209,7 +209,7 @@ app._initializeHTTP = function() {
     }
 
     // Auth the req
-    if (req.params.token !== client.token) {
+    if (client.token && req.params.token !== client.token) {
       res.sendStatus(401);
       return;
     } else {