Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Gürgün Dayıoğlu <[email protected]>
Signed-off-by: James Sumners <[email protected]>
  • Loading branch information
jsumners and gurgunday authored Jul 17, 2024
1 parent 1e44a5f commit 6929117
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 @@ -349,7 +349,7 @@ function fastifyMultipart (fastify, options, done) {
// don't overwrite prototypes
if (name in Object.prototype) {
// ensure that stream is consumed, any error is suppressed
streamToNull(file)
streamToNull(file).catch(() => {})
onError(new PrototypeViolationError())
return
}
Expand Down

0 comments on commit 6929117

Please sign in to comment.