diff --git a/lib/core/request.js b/lib/core/request.js index 0eb19e2aea5..2e7fdcd9e7c 100644 --- a/lib/core/request.js +++ b/lib/core/request.js @@ -297,12 +297,6 @@ class Request { } this.aborted = true - if (!this.abort) { - // Make sure to always call onConnect even on errors to avoid - // a common user mistake of assuming that onConnect is always - // called before any other hook. - this[kHandler].onConnect(noop) - } return this[kHandler].onError(error) }