rails / request.js

MIT License
400 stars 30 forks source link

Uppercase method name #5

Closed excid3 closed 3 years ago

excid3 commented 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.

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