added check for already existing content-type header

The content-type is forced so if you set the content-type, including charset, it would be overwritten.

A simple check if the content-type is set prevents this.
For f**s sake. I'm so sorry!