Closed OpportunityLiu closed 2 years ago
This is a breaking change introduced in Fastify 4. As instructed here https://github.com/fastify/fastify/pull/4052#issuecomment-1180224200, you can always set exposeHeadRoute
to false.
Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.
Is there an existing issue for this?
Current behavior
When a
@Get
method appears before a@Head
method, anFST_ERR_DUPLICATED_ROUTE
will be thrown.Minimum reproduction code
https://codesandbox.io/s/awesome-platform-vee6xg
Steps to reproduce
No response
Expected behavior
It should work as before.
Package
Other package
fastify
NestJS version
9.0.2
Packages versions
Node.js version
14.18.1
In which operating systems have you tested?
Other
https://github.com/fastify/fastify/pull/4052#issuecomment-1180214976