Skip to content

Commit a82e40a

Browse files
Merge pull request #14935 from johaven/fix-fastify-platfom-custom-methods-comparison
fix(fastify): methods comparison
2 parents 12b0892 + 623e27d commit a82e40a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/platform-fastify/adapters/fastify-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ export class FastifyAdapter<
762762
handler: handlerRef,
763763
};
764764

765-
if (this.instance.supportedMethods.indexOf(routerMethodKey) > -1) {
765+
if (this.instance.supportedMethods.indexOf(routerMethodKey) === -1) {
766766
this.instance.addHttpMethod(routerMethodKey, { hasBody: true });
767767
}
768768

0 commit comments

Comments
 (0)