mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-31 10:31:36 +00:00
only handle response if there is any data
This commit is contained in:
parent
59d3c01937
commit
98d1b0a17c
2
index.js
2
index.js
@ -153,7 +153,7 @@ Tracker.prototype._requestHttp = function (requestUrl, opts) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
res.pipe(concat(function (data) {
|
res.pipe(concat(function (data) {
|
||||||
self._handleResponse(requestUrl, data)
|
if (data && data.length) self._handleResponse(requestUrl, data)
|
||||||
}))
|
}))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user