title: Put request with simple string as request body
body: <p>When I execute the following code from my browser the server gives me 400 and complains that the request body is missing. Anybody got a clue about how I can pass a simple string and have it send as the request body?</p>
  
  <pre><code> let content = 'Hello world' 
   axios.put(url, content).then(response =&gt; {
      resolve(response.data.content)
    }, response =&gt; {
      this.handleEditError(response)
    })
  </code></pre>
  
  <p>If I wrap content in [] it comes thru. But then the server receives it as a string beginning with [ and ending with ]. Which seems odd.</p>
  
  <p>After fiddling around I discovered that the following works</p>
  
  <pre><code>  let req = {
      url,
      method: 'PUT',
      data: content
    }
    axios(req).then(response =&gt; {
      resolve(response.data.content)
    }, response =&gt; {
      this.handleEditError(response)
    })
  </code></pre>
  
  <p>But shouldn't the first one work as well?</p>