title: Sinatra doesn't show POST data
body: <p>I am making AJAX request from the client to Sinatra but somehow the data doesn't show up.Chrome request headers tab suggests that on the client side is everything OK:</p>
  
  <pre><code>Request Payload 
  { test: Data }
  </code></pre>
  
  <p>However, on Sinatra's side</p>
  
  <pre><code>  post '/api/check/:name' do
      sleep 3
      puts params.inspect
    end
  </code></pre>
  
  <p>And the console:</p>
  
  <pre><code> 127.0.0.1 - - [03/Feb/2014 10:45:53] "POST /api/check/name HTTP/1.1" 200 17 3.0019
      {"splat"=&gt;[], "captures"=&gt;["name"], "name"=&gt;"name"}
  </code></pre>
  
  <p>Post data is nowhere to be found, what's wrong ?</p>