Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: NotFound handler was called although route exists #98

Open
sknr opened this issue Jan 16, 2024 · 0 comments
Open

Bug: NotFound handler was called although route exists #98

sknr opened this issue Jan 16, 2024 · 0 comments

Comments

@sknr
Copy link

sknr commented Jan 16, 2024

馃挕 The feature or bug you are proposing

Bugfix: #97

馃搫 The description of the bug or the logic behind your proposal

If the route exists but the handler is missing, I got a HTTP 404 Not Found error.

馃殌 The expected result

If the route exists but the handler is missing, I expect to see a 405 Method Not Allowed error.

Example

r := bunrouter.New()
r.POST("/city/:city/postalcode/:postal", exampleHandler)

Assume that the records exists:
Make a GET request to /city/1/postalcode/1 and you get a 404 instead of a 405 error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant