From 699b31655a62b0a64a061aa1cedaa80a80a0543d Mon Sep 17 00:00:00 2001 From: Uzlopak Date: Sun, 8 Jan 2023 08:22:58 +0100 Subject: [PATCH] fix: Revert "handle unpipeing, cancelling or destroying of busboy accordingly (#81)" (#108) This reverts commit e41a64379214836b7ea4b06a7492202d2e8dc8df. --- lib/types/multipart.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/types/multipart.js b/lib/types/multipart.js index e24905c..11ba6ff 100644 --- a/lib/types/multipart.js +++ b/lib/types/multipart.js @@ -174,15 +174,6 @@ function Multipart (boy, cfg) { ++nends const file = new FileStream(fileOpts) curFile = file - boy.on('unpipe', function () { - file.destroy() - }) - boy.on('cancel', function () { - file.destroy() - }) - boy.on('destroy', function () { - file.destroy() - }) file.on('end', function () { --nends self._pause = false