Merge pull request #119 from alxhotel/master

Remove info_hash from failure reason
This commit is contained in:
Feross Aboukhadijeh 2016-03-01 16:21:45 -08:00
commit caa6d45e0a

View File

@ -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.