Skip to content

Commit

Permalink
revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Jan 31, 2024
1 parent f7ad8c8 commit 6c4023a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ function fastifyMultipart (fastify, options, done) {
function cleanup (err) {
request.unpipe(bb)

if (err && currentFile) {
if ((err || request.aborted) && currentFile) {
currentFile.destroy()
}

Expand Down

0 comments on commit 6c4023a

Please sign in to comment.