Skip to content

Commit 699b316

Browse files
authored
fix: Revert "handle unpipeing, cancelling or destroying of busboy accordingly (#81)" (#108)
This reverts commit e41a643.
1 parent ed1465b commit 699b316

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/types/multipart.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,6 @@ function Multipart (boy, cfg) {
174174
++nends
175175
const file = new FileStream(fileOpts)
176176
curFile = file
177-
boy.on('unpipe', function () {
178-
file.destroy()
179-
})
180-
boy.on('cancel', function () {
181-
file.destroy()
182-
})
183-
boy.on('destroy', function () {
184-
file.destroy()
185-
})
186177
file.on('end', function () {
187178
--nends
188179
self._pause = false

0 commit comments

Comments
 (0)