added check for already existing content-type header