We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a3d113 commit 49ec00cCopy full SHA for 49ec00c
README.md
@@ -163,7 +163,7 @@ fastify.register(proxy, {
163
upstream: `http://your-target-upstream.com`,
164
preValidation: async (request, reply) => {
165
if (request.body.method === 'invalid_method') {
166
- reply.code(400).send({ message: 'payload contains invalid method' });
+ return reply.code(400).send({ message: 'payload contains invalid method' });
167
}
168
},
169
});
0 commit comments