set correct Content-Type