Welcome to the Linux Foundation Forum!

Found a bug in Creating a Web Server with Fastify (7)

krave
krave Posts: 52
edited November 17 in LFW212 Class Forum

Within the handler function of fastify.setNotFoundHandler(), if the method of the request object is not 'GET', reply.status(404) is not called. It results that if I access a url of http://localhost:3000/foo, I will get 200 status code which is not the expected behavior.

Categories

Upcoming Training