Skip to content

Uppercase method name #5

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

Merged
merged 1 commit into from
Jun 3, 2021
Merged

Uppercase method name #5

merged 1 commit into from
Jun 3, 2021

Conversation

excid3
Copy link
Contributor

@excid3 excid3 commented Jun 3, 2021

Using new Request("post", url) will send lowercase post as the method which causes Puma (and others) to raise a 400 Bad Request.

This patch uppercases the method name, just like Rails.ajax did.

@dhh dhh merged commit 9f41962 into rails:main Jun 3, 2021
@excid3 excid3 deleted the uppercase-method-name branch June 3, 2021 14:29
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.

2 participants