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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

405 Method not allowed #86

Open
obschepit opened this issue Jul 29, 2019 · 1 comment
Open

405 Method not allowed #86

obschepit opened this issue Jul 29, 2019 · 1 comment
Labels
feature A new functionality
Milestone

Comments

@obschepit
Copy link

hi!
maybe it would be better to send '405 Method not allowed', if the path is present in route but method not allowed.
I explain.

local server = httpd.new('127.0.0.1', 8089)
server:route({ path = '/', method = 'GET' }, http.testRequest)

curl -X POST "http://127.0.0.1:8089/" -v
< HTTP/1.1 404 Not found

(https://tools.ietf.org/html/rfc7231#section-6.5.5)

@Totktonada
Copy link
Member

The idea itself looks meaningful, but I would research what other http servers do.

@Totktonada Totktonada added this to the wishlist milestone Feb 3, 2022
@Totktonada Totktonada added the feature A new functionality label Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality
Projects
None yet
Development

No branches or pull requests

2 participants