mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-12 18:36:28 +00:00
fix: statuscode (#526)
This commit is contained in:
parent
6a6280a03c
commit
e9d8f8cd75
@ -158,7 +158,7 @@ class HTTPTracker extends Tracker {
|
||||
if (this.destroyed) return
|
||||
|
||||
if (res.status !== 200) {
|
||||
return cb(new Error(`Non-200 response code ${res.statusCode} from ${this.announceUrl}`))
|
||||
return cb(new Error(`Non-200 response code ${res.status} from ${this.announceUrl}`))
|
||||
}
|
||||
if (!data || data.length === 0) {
|
||||
return cb(new Error(`Invalid tracker response from${this.announceUrl}`))
|
||||
|
Loading…
Reference in New Issue
Block a user