Revert "Bugfix - when using AbortController, errors on resulting stream must …"

This reverts commit e45516d73a.
This commit is contained in:
Cas_ 2024-11-29 12:10:50 +01:00 committed by GitHub
parent e45516d73a
commit 35e7830910
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,7 +150,6 @@ class HTTPTracker extends Tracker {
'user-agent': this.client._userAgent || ''
}
})
if (res.body.on) res.body.on('error', cb)
} catch (err) {
if (err) return cb(err)
}