I have this below observation:
I deployed a sample Rails 4.2.2 application with a controller and action to receive a POST request.
Now If I send a POST request to this application with some POST body say a hash like {"1"=>"hello","2"=>"bye"}
and if the content type of the request is "application/xml"
, I don't receive any parameters in my Rails app.
If I change content type of the same request to some thing else , I will get the parameters properly.
Can some one please tell my why this behaviour is there in Rails 4.2.2 with a POST request having content type as "application/xml"
.