From 4142e8cf20a2304c10c9d2faceb1f87a26210c96 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 1 Mar 2016 19:22:31 +0100 Subject: [PATCH] Remove info_hash from failure reason --- server.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server.js b/server.js index 39caf7c..a0e107c 100644 --- a/server.js +++ b/server.js @@ -311,8 +311,7 @@ Server.prototype._onWebSocketRequest = function (socket, params) { params = parseWebSocketRequest(socket, params) } catch (err) { socket.send(JSON.stringify({ - 'failure reason': err.message, - info_hash: common.hexToBinary(params.info_hash) + 'failure reason': err.message }), socket.onSend) // even though it's an error for the client, it's just a warning for the server.