server: rm superfluous action fields

This commit is contained in:
Astro 2014-12-09 23:18:20 +01:00
parent 366b49bf06
commit fee289b074

View File

@ -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))
})
}