set correct content-type header