Closed excid3 closed 3 years ago
Using new Request("post", url) will send lowercase post as the method which causes Puma (and others) to raise a 400 Bad Request.
new Request("post", url)
post
This patch uppercases the method name, just like Rails.ajax did.
Using
new Request("post", url)
will send lowercasepost
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.