Skip to content

Commit c721e8e

Browse files
authored
Merge pull request #7344 from nelsonprsousa/fix/fastify-parse-json
fix: Remove all default content type fastify parsers
2 parents d6900cd + d6e9510 commit c721e8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

starters/adapters/fastify/src/plugins/fastify-qwik.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ const qwikPlugin: FastifyPluginAsync<FastifyQwikOptions> = async (
3333
decorateReply: false,
3434
});
3535

36+
fastify.removeAllContentTypeParsers();
37+
3638
fastify.setNotFoundHandler(async (request, response) => {
3739
await router(request.raw, response.raw, (err) => fastify.log.error(err));
3840
await notFound(request.raw, response.raw, (err) => fastify.log.error(err));

0 commit comments

Comments
 (0)