-
Notifications
You must be signed in to change notification settings - Fork 101
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
Include Allow header with 405 response #68
Comments
It could be a good idea, do you think you could make a pull request for it ? :) |
Good idea about adding @alexedwards - Text |
@squiidz Yep, I'm happy to submit a PR for this. I'm not sure I agree on the blank response body though. I think that default behavior should be useful, and having a human-readable message ( Longer term, would it be sensible to provide a new |
PR submitted. |
Hmm, is this project still alive? cc @squiidz |
When bone returns a 405 Method Not Allowed response, it would be good if it could include an Allow header detailing which methods are permitted.
I think it could perhaps be done by amending the
otherMethods
helper. Something like:Also, what are your thoughts on including a plain text "Method Not Allowed" message in the response body, similar to the "404 page not allowed" body for 404s?
The text was updated successfully, but these errors were encountered: