Skip to content

Commit caa6d45

Browse files
committed
Merge pull request webtorrent#119 from alxhotel/master
Remove info_hash from failure reason
2 parents 00e84cb + 4142e8c commit caa6d45

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,7 @@ Server.prototype._onWebSocketRequest = function (socket, params) {
311311
params = parseWebSocketRequest(socket, params)
312312
} catch (err) {
313313
socket.send(JSON.stringify({
314-
'failure reason': err.message,
315-
info_hash: common.hexToBinary(params.info_hash)
314+
'failure reason': err.message
316315
}), socket.onSend)
317316

318317
// even though it's an error for the client, it's just a warning for the server.

0 commit comments

Comments
 (0)