Python requests headers not being set properly
<p>I'm having some trouble using Python requests. Here's my code:</p>

<pre><code>fields={
    "fields":{
        "field1":{"test": "test"},
        "field2": "test",
        "field3":{"test": "test"}
    }
}

try:
    results = requests.post(
        "http://www.fakenotrealatall.com",
        data=json.dumps(fields),
        headers={"content-type": "application/json"}
    )

    print results.headers['content-type']

    return stuff
</code></pre>

<p>When I run it, I get a 415 error, and the print statement shows that the content-type is "text/html;charset=utf-8".</p>

<p>Why isn't it being set as "application/json"?</p>