405 Allow header is removed when using a custom MethodNotAllowed handler #922
Unanswered
BoilingSoup
asked this question in
Q&A
Replies: 1 comment
-
I think this makes sense. Free to submit a PR. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
By default, Chi sends an
Allow
response header with the allowed methods when handling a 405.#776
When I use a custom 405 handler the
Allow
header is no longer present in responses.I'm not sure if this is intended behavior, so I'd like to discuss :)
I think it would be a good default to always send the
Allow
header for 405 responses, even if using a custom handler.Beta Was this translation helpful? Give feedback.
All reactions