Skip to content

Commit e9d8f8c

Browse files
authored
fix: statuscode (webtorrent#526)
1 parent 6a6280a commit e9d8f8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client/http-tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class HTTPTracker extends Tracker {
158158
if (this.destroyed) return
159159

160160
if (res.status !== 200) {
161-
return cb(new Error(`Non-200 response code ${res.statusCode} from ${this.announceUrl}`))
161+
return cb(new Error(`Non-200 response code ${res.status} from ${this.announceUrl}`))
162162
}
163163
if (!data || data.length === 0) {
164164
return cb(new Error(`Invalid tracker response from${this.announceUrl}`))

0 commit comments

Comments
 (0)