Skip to content

Commit

Permalink
fix(content-type): Fastify v5 parser leads to HTTP 415
Browse files Browse the repository at this point in the history
  • Loading branch information
nioc authored Dec 29, 2024
1 parent d9ae6ca commit facaf62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/content-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function fastifyMulter(
_options: PluginOptions,
next: (err?: Error) => void,
) {
fastify.addContentTypeParser('multipart', setMultipart)
fastify.addContentTypeParser(['multipart', 'multipart/form-data'], setMultipart)
fastify.decorateRequest('isMultipart', isMultipart)

next()
Expand Down

0 comments on commit facaf62

Please sign in to comment.