fix: statuscode (#526)

This commit is contained in:
Cas_ 2024-08-13 23:38:01 +02:00 committed by GitHub
parent 6a6280a03c
commit e9d8f8cd75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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