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

Add Kemal::OverrideMethodHandler back again #651

Merged
merged 1 commit into from
Feb 19, 2023

Conversation

sdogruyol
Copy link
Member

@sdogruyol sdogruyol commented Dec 11, 2022

Description of the Change

This adds back Kemal::OverrideMethodHandler as a Kemal middleware to handle _method magic param in the POST request body to support PUT, PATCH, DELETE methods.

This is not in the default Kemal handlers.
You can enable via:

add_handler Kemal::OverrideMethodHandler::INSTANCE

P.S: This was removed in 207f382 and after that there were many requests asking for the support.

@sdogruyol sdogruyol merged commit 84ea662 into master Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant