We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f21ab25 commit ac00794Copy full SHA for ac00794
server.js
@@ -116,10 +116,10 @@ Server.prototype._onHttpRequest = function (req, res) {
116
117
// TODO: detect when required params are missing
118
// TODO: support multiple info_hash parameters as a concatenation of individual requests
119
- var infoHash = bytewiseDecodeURIComponent(params.info_hash).toString('hex')
+ var infoHash = params.info_hash && bytewiseDecodeURIComponent(params.info_hash).toString('hex')
120
121
if (!infoHash) {
122
- return error('bittorrent-tracker server only supports announcing one torrent at a time')
+ return error('missing info hash')
123
}
124
125
if (s[0] === '/announce' || s[0] === '/') {
0 commit comments