Skip to content

Commit 49ec00c

Browse files
authored
Update README.md
Signed-off-by: Matteo Collina <[email protected]>
1 parent 2a3d113 commit 49ec00c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ fastify.register(proxy, {
163163
upstream: `http://your-target-upstream.com`,
164164
preValidation: async (request, reply) => {
165165
if (request.body.method === 'invalid_method') {
166-
reply.code(400).send({ message: 'payload contains invalid method' });
166+
return reply.code(400).send({ message: 'payload contains invalid method' });
167167
}
168168
},
169169
});

0 commit comments

Comments
 (0)