Skip to content

Commit

Permalink
fix: statuscode
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown committed Aug 13, 2024
1 parent 6a6280a commit 7029df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client/http-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`))
Expand Down

0 comments on commit 7029df6

Please sign in to comment.