mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 20:21:36 +00:00
server: rm superfluous action fields
This commit is contained in:
parent
366b49bf06
commit
fee289b074
@ -162,11 +162,11 @@ Server.prototype._onHttpRequest = function (req, res) {
|
||||
if (err) {
|
||||
self.emit('warning', new Error(err.message))
|
||||
response = {
|
||||
action: common.ACTIONS.ERRROR,
|
||||
'failure reason': err.message
|
||||
}
|
||||
}
|
||||
|
||||
delete response.action // only needed for UDP encoding
|
||||
res.end(bencode.encode(response))
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user