Bugfix - when using AbortController, errors on resulting stream must be caught (#539)
Some checks failed
ci / Node ${{ matrix.node }} / ${{ matrix.os }} (18, ubuntu-latest) (push) Has been cancelled
Release / Release (push) Has been cancelled

* use-native-fetch

* Bugfix: `res.body` should handle errors according to https://github.com/nodejs/undici/issues/3353#issuecomment-2184635954

* Revert "use-native-fetch"

This reverts commit d65460319e.

* fix-quotes

* some-build-targets-return-different-output
This commit is contained in:
uriva 2024-11-29 11:53:40 +02:00 committed by GitHub
parent f2f4990501
commit e45516d73a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,6 +150,7 @@ 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)
}