title: Sending JSON using $http cause angular to send text/plain content type
body: <p>I just want to send the following JSONobjects to my API backend:</p>
  
  <pre><code>{
      "username":"alex",
      "password":"password"
  }
  </code></pre>
  
  <p>So I wrote the following function, using Angular $http:</p>
  
  <pre><code>$http(
  {
      method: 'POST', 
      url: '/api/user/auth/',
      data: '{"username":"alex", "password":"alex"}',
  })
  .success(function(data, status, headers, config) {
   // Do Stuff
  })
  .error(function(data, status, headers, config) {
   // Do Stuff
  });
  </code></pre>
  
  <p>I read in documentation for POST method that Content-Type header will be automatically set to <strong>"application/json"</strong>.</p>
  
  <p>But I realized that the content-type I receive on my backend (Django+Tastypie) api is <strong>"text/plain"</strong>.</p>
  
  <p>This cause my API to not respond properly to this request. How should I manage this content-type?</p>