title: Why is PUT request body undefined?
body: <p>I'm making the following request to my koajs server:</p>
  
  <pre><code>$.ajax({
      type        : 'PUT',        // this.request.body undefined server side
      // type         : 'POST',   // this.request.body all good server side
      url         : url,
      data        : body,
      dataType    : 'json'
  })
  </code></pre>
  
  <p>But on the server side <code>this.request.body</code> is always undefined.</p>
  
  <p>If I change the request type to POST, it works fine.</p>
  
  <p>Any ideas?</p>
  
  <hr>
  
  <p><strong>EDIT</strong></p>
  
  <p>I'm using <code>koa-route</code>.</p>
  
  <hr>
  
  <p><strong>EDIT 2</strong></p>
  
  <p>Just realised I'm using <code>koa-body-parser</code>, which is probably more relevant.</p>