Skip to content

Commit

Permalink
fix: Revert "handle unpipeing, cancelling or destroying of busboy acc…
Browse files Browse the repository at this point in the history
…ordingly (#81)" (#108)

This reverts commit e41a643.
  • Loading branch information
Uzlopak authored Jan 8, 2023
1 parent ed1465b commit 699b316
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/types/multipart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 699b316

Please sign in to comment.