diff --git a/dist/index.js b/dist/index.js index 446c81b..2f14eb1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3600,10 +3600,6 @@ function getNodeRequestOptions(request) { agent = agent(parsedURL); } - if (!headers.has('Connection') && !agent) { - headers.set('Connection', 'close'); - } - // HTTP-network fetch step 4.2 // chunked encoding is handled by Node.js @@ -4023,6 +4019,7 @@ exports.Headers = Headers; exports.Request = Request; exports.Response = Response; exports.FetchError = FetchError; +exports.AbortError = AbortError; /***/ }),