Explorar o código

May not need to stringify

Michelle Bu %!s(int64=11) %!d(string=hai) anos
pai
achega
983c86b639
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/server.js

+ 1 - 1
lib/server.js

@@ -228,7 +228,7 @@ PeerServer.prototype._initializeHTTP = function() {
     if (self._clients[key]) {
       self._checkAllowsDiscovery(key, function(isAllowed) {
         if (isAllowed) {
-          res.send(JSON.stringify(Object.keys(self._clients[key])));
+          res.send(Object.keys(self._clients[key]));
         } else {
           res.send(401);
         }