setting content type header correctly