don't assign content-type until action is ready to return