I'm trying to set Content-Type for URLRequest headers to "application/json". Here is the code:
var request:URLRequest = new URLRequest("http://localhost");
request.contentType = "application/json; charset=UTF-8";
But as you can see on screenshot Content-Type is not in headers:
http://screencast.com/t/vHxHbSUOFM
But it's in request body:
http://screencast.com/t/irB16taO
How to make it right?