浏览代码

Update server.js

Ignore token if not configured
Jairo Caro-Accino Viciana 6 年之前
父节点
当前提交
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
     // Auth the req
-    if (req.params.token !== client.token) {
+    if (client.token && req.params.token !== client.token) {
       res.sendStatus(401);
       res.sendStatus(401);
       return;
       return;
     } else {
     } else {