From 1df6c953c5d113746893fb41cd232920a1e5171b Mon Sep 17 00:00:00 2001 From: Nicholas Farley Date: Mon, 30 Oct 2023 09:27:43 -0400 Subject: [PATCH] Revert changes to dist/index.js --- dist/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 2014633..e92bf3c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3702,7 +3702,6 @@ function asPromise(normalizedOptions) { request._beforeError(new types_1.HTTPError(response)); return; } - request.destroy(); resolve(request.options.resolveBodyOnly ? response.body : response); }); const onError = (error) => {