We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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)
The text was updated successfully, but these errors were encountered:
The idea itself looks meaningful, but I would research what other http servers do.
Sorry, something went wrong.
No branches or pull requests
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)
The text was updated successfully, but these errors were encountered: