set correct content-type