feature - add Allow HTTP header to response for status code 405 #186
Comments
I can try to create a patch for this, if you just can point me in the right direction. |
All I did was add the following line to requests.js, line 247:
So the whole else block looks like this now:
I am not sure if that's the best approach or not. I can whip up a patch file, or do a pull request if that is more convenient for you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When lambda-api can not find a method for a path, it automatically sends back a HTTP 405 Method Not Allowed error, via MethodError. Per the HTTP rfc 7231, the Allow header must be sent back with the 405 response. I purpose adding this to lambda-api. I believe it can introspect and get the allowed methods, correct?
Thanks!
The text was updated successfully, but these errors were encountered: