diff --git a/javascript/fastify/app.js b/javascript/fastify/app.js index e05c62f3149..4aeac34c724 100644 --- a/javascript/fastify/app.js +++ b/javascript/fastify/app.js @@ -11,6 +11,11 @@ app.get('/user/:id', function (request, reply) { reply.send(request.params.id); }); +app.addContentTypeParser('application/x-www-form-urlencoded', function (req, body, done) { + // The incoming request in the benchmark is empty anyway + done(); +}); + app.post('/user', function (request, reply) { reply.send(); });