Open jamiebullock opened 7 years ago
If crow receives a request with an unsupported method (e.g. an endpoint supports POST but not PUT), it returns 404 Not Found, but should return 405 Method Not Allowed with an "Allow" header specifying the methods that are allowed
this issue is in routing.h, specifically the handle() function, the code seems to execute whether the method or url is not found.
routing.h
handle()
If crow receives a request with an unsupported method (e.g. an endpoint supports POST but not PUT), it returns 404 Not Found, but should return 405 Method Not Allowed with an "Allow" header specifying the methods that are allowed