Kaynağa Gözat

Update server.js

Ignore token if not configured
Jairo Caro-Accino Viciana 6 yıl önce
ebeveyn
işleme
5012793f23
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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 {